代码签名错误 - 命令/usr/bin/codesign 失败,退出代码为 1 [英] Code Sign Error - Command /usr/bin/codesign failed with exit code 1

查看:32
本文介绍了代码签名错误 - 命令/usr/bin/codesign 失败,退出代码为 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我花了上周的时间试图解决以下错误但无济于事(甚至按照我自己不久前对自己问题的回答中的步骤

到目前为止,我已经尝试了所有列出的巫毒"解决方案 这里这里这里这里,以及此处都无济于事.>

如果有人能帮我解决这个问题,我将不胜感激.

我正在尝试归档我的应用程序,以便我可以将它提交到应用程序商店,但它在代码签名时失败了.

CodeSign/Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjdzcvdqsvuxsmas/Build/Intermediates/ArchiveIntermediates/Road\ Safety\ App\ V2/InstallationBuildProductsSafer-Application道路-Shellharbour-v2.appcd "/Volumes/App Development/IOS/App Development/Safer Roads Shellharbour 2.0/Safer Roads Shellharbour 2.0"导出 CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate导出路径="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"签名身份:iPhone 开发者:信息服务的 MacBook Pro (CG45JDQ5G7)"配置文件:iOSTeam 配置文件:*"(8bf314ed-8355-468c-82a9-37e2c46119a9)/usr/bin/codesign --force --sign 66EB81FC3AA1D26BB39CBBB62AF4839298FCD362 --entitlements/Users/informationservices/Library/Developer/Xcode/DerivedData/Safer-Roads-Shellharbour-v2-afdgadppojkknjivedxmedis/Archdgadppojkknjiveds/\ 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-afdgadppojkknjdzcvdqsvuxsmas操作.命令/usr/bin/codesign 失败,退出代码为 1

请问有人可以帮忙吗?

解决方案

请确定:

  • 您的签名身份是分发 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

这篇关于代码签名错误 - 命令/usr/bin/codesign 失败,退出代码为 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆