Reputation: 2095
The embedded binary and the parent app has the same certificate but I am getting the error message: error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.
Upvotes: 9
Views: 9080
Reputation: 317
This worked for me, I don't understand why but it worked for 2 keyboard extensions:
Go to Build Setting
I tried a lot of suggestions, including new profiles, new certs, new App ID, clean build, delete derived data, restart, reset, etc etc, but this was the only one that worked for me, even though it the code signing of the parent and embed app is definitely not the same.
Upvotes: 1
Reputation: 389
1) You have to go on the developer.apple.com portal
2) declare two new app IDs, com.organisation.appname.watchkitextension and one with com.organisation.appname.watchapp
3)then add two new Provisioning profiles for this two app Ids..
Warning ! : you have to select the same certificate that the parent App, if you have a doubt, i recommend you to re-create this certificate...
4) in build settings, for all targets you have to spot the correct profile...
Hope that's helping.
Upvotes: 1
Reputation: 2341
There are quite a few reasons the issue may emanate from. Would like to add another plausible check that helped me. Ensure the certificate you are signing with doesn't have 'Always Trust' (you will see a green '+' sign if the setting is such).
It's especially true if you are using Swift in your project as the 'Always Trust' setting breaks pertinent Swift libraries.
Upvotes: 2
Reputation: 258
This is just Xcode making you go crazy,all what you have to do is
Preferences->Accounts
(Command+,) Enjoy :D
Upvotes: 6