Why this happens
Xcode requires every embedded binary—widgets, Watch apps, App Clips, and other app extensions—to be code signed with the exact same certificate (signing identity) as the parent app. The error Embedded binary is not signed with the same certificate as the parent app appears when the extension target shows “Not Code Signed” while the main app target has a valid signing identity such as iPhone Developer: Name (TEAMID).
Common triggers:
– A new widget or extension target was added but left on the default “Sign to Run Locally” or “Automatic” setting without a team selected.
– The extension target uses a different Apple Developer Program team than the main app.
– Automatic code signing is enabled for the app but disabled (or misconfigured) for the extension.
How to fix it
1. Align the Code Signing Identity on the extension target
- Open the project navigator and select the project file (top level).
- In the target list, choose the extension target (e.g.,
MyWidgetExtension). - Switch to the Build Settings tab.
- Search for Code Signing Identity.
- Expand the setting and set Any iOS SDK (or the specific SDK rows) to the same signing identity used by the main app target—typically
Apple Development: <Your Name> (TEAMID)for debug orApple Distribution: <Your Name> (TEAMID)for release. - Do the same for Code Signing Style if you manage profiles manually: set it to
Manualand pick the matching provisioning profile.
2. Use Automatic Signing with the same team (recommended)
If you prefer Xcode to manage profiles:
- Still in the extension target’s Signing & Capabilities tab, check Automatically manage signing.
- Select the same Team as the main app target.
- Xcode will create or fetch a provisioning profile named like
iOS Team Provisioning Profile: com.yourcompany.yourapp.widgetthat matches the parent app’s certificate. - Clean the build folder (Product → Clean Build Folder) and rebuild.
3. Verify the embedded binary appears in the app’s Frameworks folder
After a successful build, open the Report Navigator, select the latest build, and expand the Embed App Extensions phase. Confirm the extension .appex is listed and shows the same signing certificate as the app.
How to prevent it
- Add new extension targets from within the same Xcode project so they inherit the team and signing settings.
- Keep Automatically manage signing enabled on all targets unless you have a specific reason to go manual.
- Use a single Developer Team across the entire project; avoid mixing Personal and Organization teams.
- Run Product → Clean Build Folder after changing signing settings on any target.
- Add a Copy Files / Embed App Extensions build phase check in CI to catch mismatches early.
FAQ
Does this apply to Watch apps and App Clips too?
Yes. Any target that produces an embedded binary (.appex, .app inside Watch, .appclip) must share the parent app’s signing certificate.
Can I use a different provisioning profile for the extension?
The profile can be distinct (different bundle ID, entitlements), but it must be issued by the same certificate (same Team ID and signing identity).
What if I’m using Xcode Cloud or another CI system?
Ensure the CI workflow imports the same certificates and keys into the keychain, and that xcodebuild receives the same CODE_SIGN_IDENTITY and PROVISIONING_PROFILE_SPECIFIER for both the app and extension targets.
Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.
