且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-01-14 21:48:49

请确定:

  • 您的签名身份是分发 ID?(似乎是开发者证书)
  • 您的省.个人资料是否有效且未过期?和通配符作为包 ID 是否正确?
  • 您的 xcode-select 路径是否正确 (xcode-select -p)?
  • 将应用移到某处并尝试在那里签名(也许路径中的某些空格将内容混淆了......)?

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

So I've spent the last week trying to solve the following error to no avail (even following the steps in my own answer to my own question from a little while ago

I've so far tried all manner of 'voodoo' solutions listed Here, here, here, here, and here all to no avail.

Please, if anyone can help me solve this issue, i would be eternally grateful.

I am trying to archive my app so i can submit it to the app store, but its falling down at the code signing.

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

Please can anyone help?

Just to be sure:

  • your signing identity is a distribution ID? (it seems to be an developer cert)
  • your prov. profile is active and not expired? and wildcard as a bundle id ist correct?
  • your xcode-select path is correct (xcode-select -p)?
  • moved the app somewhere and try to sign it there (perhaps some spaces in the path are mixing things up...)?

perhaps check this: https://developer.apple.com/library/mac/technotes/TN2407/_index.html