无法对Mac App进行代码签名 [英] Could not code sign a Mac App
问题描述
我已成功将我的应用程序[版本1.0]提交给iTunesConnect
进行审查.他们拒绝了它,因为我添加了一个额外的App Sandbox feature
.因此,我解决了该问题,并尝试将我的项目归档为新的内部版本号.
I successfully submitted my app [ version 1.0 ] to iTunesConnect
for review. And they have rejected it because I have added an extra App Sandbox feature
. So I solved that thing and tried to archive my project in new build number.
我还选择了Code Signing Identity 3rd Party Mac Developer Application
,然后返回到项目设置"->常规",现在我可以看到签名"切换为None
,而"Team
"自动更改为无".因此,我将其更改为My Team Name
并登录到Mac App Store
.现在,我回到了Project Settings -> Build Setting
,那里的代码签名身份具有选择的不同身份[Two Mac Developer & One 3rd Party Mac Developer
].
Also I have selected my Code Signing Identity 3rd Party Mac Developer Application
, And came back to Project Settings -> General, now I could see that the Signing switched to None
and Team
automatically changed to None. So I have changed that to My Team Name
and Signing into Mac App Store
. Now I have went back to Project Settings -> Build Setting
s, There the code signing identity has different identity selected [ Two Mac Developer & One 3rd Party Mac Developer
].
所以发生的事情是,每当我更改某些内容时,相反的情况就会在其他地方发生.基本上,我无法归档导致项目的代码签名问题.
So what happens is that whenever I change something the opposite happen in other place. Basically I am unable to archive my project cause of code signing issue.
如果我尝试使用Mac Developer
身份代码对符号进行编码,它会向我展示一些我以前从未见过的东西.
If I try to code sign using Mac Developer
Identity, it shows me something that I never seen before.
类似error: A cryptographic verification failure has occurred
的东西.
*** error: Couldn't codesign /Users/Alvin/Library/Developer/Xcode/DerivedData/MyApp-bjtynsmrmxhrfffdvpfwxeanbgkb/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/libswiftCore.dylib: codesign failed with exit code 1
Something like error: A cryptographic verification failure has occurred
.
*** error: Couldn't codesign /Users/Alvin/Library/Developer/Xcode/DerivedData/MyApp-bjtynsmrmxhrfffdvpfwxeanbgkb/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/libswiftCore.dylib: codesign failed with exit code 1
那么我将如何解决这个问题?预先感谢.
So how will I solve this problem? Thanks in advance.
顺便说一句,我正在macOS Sierra
中使用Xcode 7.3.1
.这可能是个问题吗?没事吧?
By the way, I am using Xcode 7.3.1
in macOS Sierra
. Is that can be a problem? No right?
推荐答案
macOS Sierra似乎存在代码签名问题.您可以在此处.
It seems there may be code signing issues with macOS Sierra. You can follow the issue here.
我建议您退回到El Cap,只在用于测试OS的计算机上安装新Mac OS的早期测试版,而不是在进行积极开发的计算机上.
I would recommend reverting back to El Cap and only installing an early beta of a new Mac OS on a machine used for testing the OS, not one you are doing active development on.
[2016年7月6日更新]
一些开发人员报告说此问题已通过macOS Sierra Beta 2和Xcode 8 Beta 2进行了修复,但如果此问题得以解决,我尚未在我的备用Mac上进行确认.
Some developers are reporting this fixed with macOS Sierra Beta 2 and Xcode 8 Beta 2, but I have not yet comfirmed on my spare Mac if this fixes the problem.
此外,一些开发人员报告说,重置钥匙串修复程序是.在钥匙串访问"应用中,转到首选项...",然后单击重置我的默认钥匙串".
Also, some developers have reported that resetting the Keychain fixes is. In the Keychain Access app , go to "Preferences..." and click "Reset My Default Keychain".
这篇关于无法对Mac App进行代码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!