微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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,解决了这个问题

原文地址:https://www.jb51.cc/iOS/335673.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐