wes. i
wes. i

Reputation: 628

Manual integrated framework failed when distribution

i've integrated a third party framework into my tvOS project. The framework is integrated manually by pulling .framework file to Target -> Project -> General -> Embedded Binaries. And then i can compile and run my project, everything is good until i try to upload the build to app store, it failed to code sign the framework

enter image description here

Does anyone has bump into this situation before?

EDIT: Standard log as follow:

28-2-19, 2.43 PM.xcarchive/Products/Applications/test.app/Frameworks/raygun4apple.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/hays/Library/Developer/Xcode/Archives/2019-02-28/testTVApp 28-2-19, 2.43 PM.xcarchive/Products/Applications/test.app/Frameworks/raygun4apple.framework" did not contain a "archived-expanded-entitlements.xcent" resource."

Upvotes: 1

Views: 359

Answers (1)

alexis
alexis

Reputation: 39

The Raygun4Apple provider is developed as a “fat” library, which includes architectures for both simulators and devices. You will need to strip out the simulator architectures (x86_64, i386) before releasing. There is a helpful article on how to do this here: https://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

so, you have to do:

  • open xcode

  • select your project

  • navigate to the Build phases

  • click + icon to add new phase: New run script phase

  • move it behind the Embedded frameworks phase

  • open your phase and paste the script from the article

  • also select "run script only when installing"

now you can archive and sign your ipa

Upvotes: 2

Related Questions