Xcode 6 error: “Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.”

后端 未结 20 1306
孤独总比滥情好
孤独总比滥情好 2020-12-08 01:45

I\'m trying to build an extension project and Xcode keeps throwing the error in subject.

\"Xcode

相关标签:
20条回答
  • 2020-12-08 02:25

    In my case, this error occurred when I changed App bundle identifier. I also have WatchKit App in my project.

    To fix this, update the WatchKit Extension and WatchKit App bundle Id prefix with the new bundle id of your app. Check info.plist in both targets.

    Also update the following -

    Update the following with the new Watch App bundle id. WatchKit Extension > Info.plist - NSExtension->NSExtensionAttributes->WKAppBundleIdentifier

    Update the following with the new app id. WatchKit App > Info.plist - WKCompanionAppBundleIdentifier

    After changing all the values don't forget to Clean product once.

    0 讨论(0)
  • 2020-12-08 02:26

    Try a Clean before the Build. This fixed the problem for me (Xcode 6b2).

    0 讨论(0)
  • 2020-12-08 02:26

    Target->General-->Embedded Binaries delete the older and select the new this was how i solved this problem

    0 讨论(0)
  • 2020-12-08 02:28

    I got the same error, you probably add a extension like Today widget, since the extension is also a binary itself so it has its own plist, and make sure in extension's plist the bundle id is prefixed with app's bundle id. Hope this helps.

    0 讨论(0)
  • 2020-12-08 02:31

    Go to each target > Build Settings > Product Bundle Identifier > (Rename to whatever)

    0 讨论(0)
  • 2020-12-08 02:33

    this helped me:

    The extension needs to have the parent's bundle ID as its prefix.

    For example, if you app is com.ronnathan.myapp, your extension has to be com.ronnathan.myapp.today. You renamed the app target, now go into the extension target and change the name to match.

    taken from here

    0 讨论(0)
提交回复
热议问题