6
votes

As a followup to my other question, I'm continuing to have issues submitting my iOS 8 app (which includes a Sharing Extension and a framework target). On a submission attempt I receive the above error message. Others with my issue (as pointed out in the afore-linked question) have the same issue, but resolved it in ways that aren't relevant to my case.

The error message implicates my Sharing Extension target, which links to a framework that I wrote, which is shared between the Extension and the app. I'm pretty sure Apple was clear that I'm allowed to use frameworks in Extension targets (in fact, it's preferred!). So what other causes might there be for this error?

3

3 Answers

8
votes

Well, the answer seems simple enough: in the Extension target I was embedding the framework (Build Phases > Embed Framework). Once I removed that setting, everything works fine.

Sigh.

3
votes

I had to remove (Build Phases > Embed Pods Frameworks) From the today excitation.

Was able to upload to appstore but this bring other problem the today excitation is not working

dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking

0
votes

For me, Aaron's answer was only half the answer. After removing my framework from my extension's Embedded Binaries, I had to add it to my extension's Linked Frameworks and Libraries. (Both can be found in the extension's General tab.)