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

前端之家收集整理的这篇文章主要介绍了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相关文章