Embedded binary is not signed with the same certificate

Hi,


I have this error when I try to run my app on a device from XCode 7.3.1. Whenever I build my application I keep getting this error:


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.

Embedded Binary Signing Certificate: - (Ad Hoc Code Signed)

Parent App Signing Certificate: iPhone Distribution: XXXXXXX (XXXXXXXX)


I have revoked all my certificates and regenerated new ones, I switched the code signing for both app and Widget to manually specify the profile and identity making sure that both targets are built on the same certificate. I removed my Apple ID from XCode, deleted derived data, restarted XCode, restarted the MAC, deleted the certificates from key chain and re-downloaded them, changed the certificate to be always trusted and back to System defaults, I deleted all provisioning profiles and re-downloaded them (several times).


I am not sure what else to do as I've been having this issue for over a week now and I cannot build my application for ad-hoc testing.


Please can someone please help

Did you ever find a solution? I'm having this same problem too.

Anyone got this sorted? Tried on dont know how many hours, same problem

This helped me: https://stackoverflow.com/a/37550937/1032900

Basically, in Keychain Access's certificates, ensure the developer certificate you are signing with doesn't have 'Always Trust', which breaks pertinent Swift libraries.

Embedded binary is not signed with the same certificate
 
 
Q