ios – 命令/usr/bin/codesign失败,退出代码5

我最近将Mac OS的更新从10.11更改为10.12,我无法在 Xcode 8.0中签署我的iOS应用程序.

我得到这个错误:

CodeSign /Users/aymericpitre/Library/Developer/Xcode/DerivedData/OrpiDirect-ghphwnhfbtdulhgauptikzmsrqdi/Build/Products/Debug-iphoneos/OrpiDirect.app

cd /Users/aymericpitre/Documents/projets/Ville-de-lyon-iPhone/VilleDelyon_git/ville_de_lyon

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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: aymeric xxxx (SYC4JR6K8G)"
Provisioning Profile: "VDL-sierra"
                      (756b4f3a-26aa-4937-ba40-4cc4eea03e92)

/usr/bin/codesign --force --sign D60599B3AE74EE1D4863C249026FA28545A07689 --entitlements /Users/aymeric/Library/Developer/Xcode/DerivedData/OrpiDirect-ghphwnhfbtdulhgauptikzmsrqdi/Build/Intermediates/OrpiDirect.build/Debug-iphoneos/OrpiDirect.build/OrpiDirect.app.xcent --timestamp=none /Users/aymeric/Library/Developer/Xcode/DerivedData/OrpiDirect-ghphwnhfbtdulhgauptikzmsrqdi/Build/Products/Debug-iphoneos/OrpiDirect.app

命令/usr/bin/codesign失败,退出代码5

配置文件似乎是确定的,因为我在Xcode / preferences / accounts窗口中找到它.

我试图在派生文件夹中运行xattr -c *命令,但它不起作用.

解决方法

我有一个非常可怕的答案.我不知道在我的系统中损坏了什么,但经过这么多重新安装和删除xcode仍然没有解决问题.所以我格式化我的hdd并重新安装Mac OS Sierra和xcode 8,解决了这个问题

以上是来客网为你收集整理的ios – 命令/usr/bin/codesign失败,退出代码5全部内容,希望文章能够帮你解决ios – 命令/usr/bin/codesign失败,退出代码5所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。