xcode 6.1命令/ usr / bin / codesign失败,退出代码为1

时间:2014-12-04 00:22:53

标签: ios xcode

我一直致力于一个项目,我今天在我们的两个测试设备上遇到了以下错误。我尝试过以下方法来解决问题,但它仍然坚持:

  • 首选项> Accounts->删除帐户 - >添加帐户 - >查看详细信息 - >茶点>重启XCode。
  • 重启mac
  • 替换了开发证书和配置文件
  • 创建新证书和配置文件

提供的构建消息是:

CodeSign /Users/jlowe/Library/Developer/Xcode/DerivedData/MSIUAT-bmmhsvmhpevuxbalmdsygccqsclg/
  Build/Products/Debug-iphoneos/MSIUAT.app
    cd /Users/jlowe/Documents/PhoneGap_4.0/MSI/platforms/ios
    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:     "iOS Development: JLowe"
Provisioning Profile: "MSI Development"
                  (81e07a7b-9a66-4d49-992b-688f1407c5a9)

   /usr/bin/codesign --force --sign 26BF4AC4B4E3560A8DD52AE7D6DE0B369326B226 --entitlements /
  Users/jlowe/Library/Developer/Xcode/DerivedData/MSIUAT-bmmhsvmhpevuxbalmdsygccqsclg/Build/
  Intermediates/MSIUAT.build/Debug-iphoneos/MSIUAT.build/MSIUAT.app.xcent /Users/
  jlowe/Library/Developer/Xcode/DerivedData/MSIUAT-bmmhsvmhpevuxbalmdsygccqsclg/Build/Products/
  Debug-iphoneos/MSIUAT.app

/Users/jlowe/Library/Developer/Xcode/DerivedData/MSIUAT-bmmhsvmhpevuxbalmdsygccqsclg/Build
  /Products/Debug-iphoneos/MSIUAT.app: Permission denied
Command /usr/bin/codesign failed with exit code 1

任何可以帮助确定正在发生的事情的帮助都将受到赞赏。谢谢!

1 个答案:

答案 0 :(得分:2)

我能够通过再次授予应用程序文件夹权限来解决此问题。不知何故,某些文件夹的权限已被删除。