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

时间:2014-10-28 23:02:36

标签: ios xcode6 itunesconnect

所以我在上周试图解决以下错误无济于事(甚至在我不久前回答我自己的问题的步骤之后

到目前为止,我已经尝试过各种各样的“伏都教”。列出的解决方案Hereherehereherehere都无济于事。

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

我正在尝试存档我的应​​用,因此我可以将其提交到应用商店,但它会在代码签名中落下来。

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

请有人帮忙吗?

2 个答案:

答案 0 :(得分:3)

只是为了确定:

  • 您的签名身份是分发ID? (它似乎是开发人员证书)
  • 你的资格。个人资料是否有效且未过期?和通配符作为包ID是正确的吗?
  • 您的xcode-select路径是否正确(xcode-select -p)?
  • 将应用程序移到某处并尝试在那里签名(路径中的某些空格可能会混合起来......)?

或许请查看:https://developer.apple.com/library/mac/technotes/TN2407/_index.html

答案 1 :(得分:0)

还要检查的一个地方是,在您的应用的“设置设置”中,在“代码签名”下,您可以在“#34;代码签名身份”#34;下列出您的手机。默认只有iOS Developer,它应该读你的手机。