6

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?

Community
  • 1
  • 1
Aaron Vegh
  • 5,217
  • 7
  • 48
  • 75

3 Answers3

9

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.

Aaron Vegh
  • 5,217
  • 7
  • 48
  • 75
  • 4
    I'm having this same issue and removing the build phase enables me to submit the app. Unfortunately, neither the app's Today or extension or the watch app extension is able to run without the framework embedded since it needs that code to run. What am I missing? – GnarlyDog May 21 '15 at 02:16
  • @GnarlyDog: Make sure the framework is listed in the "Target Dependencies" and "Linked Libraries" sections within the "Build Phases" tab of your target. Maybe you were missing one of those two? – Jeehut Nov 04 '15 at 12:14
3

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

iTarek
  • 736
  • 1
  • 8
  • 17
0

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.)

Pim
  • 2,128
  • 18
  • 30