Xcode6:Embedded binary is not signed with the same

2019-02-05 10:14发布

After I add Today App Extension Target,I become impossible to compile project. below is 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: iPhone Developer: (Developer name) (number)

Parent App Signing Certificate: iPhone Developer: (Developer name) (number)

but Embedded binary certificate and parent app's cerificate are the same. So I'm confusing now...

28条回答
三岁会撩人
2楼-- · 2019-02-05 10:56

I had discrepancies under Code Signing. My Extension and Main app had different certificates selected. Once I set both to use distribution it worked fine.

enter image description here

查看更多
叛逆
3楼-- · 2019-02-05 10:58

In my case the profile my extension target uses contains different certificates than the profile the parent target uses contains. This was exactly the error messages complained about!

The reason was I generated a new certificate for the extension profile.

So log in to developer.apple.com to see if these profiles contains different certificate.

查看更多
够拽才男人
4楼-- · 2019-02-05 10:59

I had a similar issue. For me the issue was with the certificate showing, 'signed by unknown authority'. I had followed the below steps and it is resolved. The problem was missing apple WWDR intermediate certificate.

We must also install the WWDR intermediate certificate issued by Apple’s worldwide developer relations. It can be downloaded from the portal or directly at http://developer.apple.com/certificationauthority/AppleWWDRCA.cer Make sure you add this to your keychain as well.

To add the certificate: open your keychain utility software on your Mac computer, then go to File→Import items, then select AppleWWDRCA.cer.

查看更多
放荡不羁爱自由
5楼-- · 2019-02-05 10:59

For Xcode 8 beta 3

My build numbers were off on my different Targets in my Xcode project file.

iOS Target showing "Build 3"

My iOS target had a build version 3, but my watch app target and my share extension target both had build version 1.

Thingy Watch target showing build number 1, does not match iOS target build number.

All I did was match all the targets' build numbers (changed them all to 3) and it fixed the issue.

Hope this helps.

查看更多
小情绪 Triste *
6楼-- · 2019-02-05 11:00

In the case of using WatchKit, make sure that your Watch App has the correct "Team" selected in the Watch App Target settings (under General > Signing > Team). I had set the phone app's team, but not the watch app's team.

查看更多
Emotional °昔
7楼-- · 2019-02-05 11:01

I had to select my app under 'Targets', then go to the 'Capabilities' tab and click 'Fix Issues' under the 'App Groups' section

查看更多
登录 后发表回答