I\'m trying to build an extension project and Xcode keeps throwing the error in subject.
Make sure your:
Target App A -> Built Settings -> Code Signing -> Release
is the same with:
Target App A (Extension) -> Built Settings -> Code Signing -> Release
I was having the same problems. Changing the CFBundleIdentifier for my WatchKit extension to something other than the original value used when I first added the WatchKit extension and re-setting my shared app group entitlement fixed it for me.