代码签名错误 – 命令/ usr / bin / codesign失败,退出码为1

所以我花了上个星期试图解决以下错误无济于事(即使在我自己的回答我自己的问题的一些步骤

到目前为止,我已经尝试了所有列举的“巫毒”解决scheme。在这里 , 在 这里 , 在这里 , 这里都无济于事。

请,如果有人能帮我解决这个问题,我会永远感激。

我试图存档我的应​​用程序,所以我可以提交给应用程序商店,但它在代码签名下跌。

CodeSign /Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjdzcvdqsvuxsmas/Build/Intermediates/ArchiveIntermediates/Road\ Safety\ App\ V2/InstallationBuildProductsLocation/Applications/Safer-Roads-Shellharbour-v2.app cd "/Volumes/App Development/IOS/App Development/Safer Roads Shellharbour 2.0/Safer Roads Shellharbour 2.0" export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Developer: Information Services's MacBook Pro (CG45JDQ5G7)" Provisioning Profile: "iOSTeam Provisioning Profile: *" (8bf314ed-8355-468c-82a9-37e2c46119a9) /usr/bin/codesign --force --sign 66EB81FC3AA1D26BB39CBBB62AF4839298FCD362 --entitlements /Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjdzcvdqsvuxsmas/Build/Intermediates/ArchiveIntermediates/Road\ Safety\ App\ V2/IntermediateBuildFilesPath/Safer-Roads-Shellharbour-v2.build/Release-iphoneos/Safer-Roads-Shellharbour-v2.build/Safer-Roads-Shellharbour-v2.app.xcent /Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjdzcvdqsvuxsmas/Build/Intermediates/ArchiveIntermediates/Road\ Safety\ App\ V2/InstallationBuildProductsLocation/Applications/Safer-Roads-Shellharbour-v2.app /Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjdzcvdqsvuxsmas/Build/Intermediates/ArchiveIntermediates/Road Safety App V2/InstallationBuildProductsLocation/Applications/Safer-Roads-Shellharbour-v2.app: User canceled the operation. Command /usr/bin/codesign failed with exit code 1 

请任何人都可以帮忙?

只是要确定:

  • 您的签名身份是分配ID? (这似乎是一个开发人员证书)
  • 你的省钱 configuration文件是活动的,没有过期? 和通配符作为一个捆绑ID是正确的?
  • 你的xcodeselectpath是正确的(xcode-select -p)?
  • 移动应用程序的地方,并试图在那里签名(也许path中的一些空间正在混合的东西…)?

也许检查这个: https : //developer.apple.com/library/mac/technotes/TN2407/_index.html

还有一个地方要检查,在您的应用程序的“生成设置”中,在“代码签名”下,您的电话在“代码签名身份”下列出。 默认只会有iOS开发者,它应该读你的手机。