代码签名错误 - xCode 4.5

时间:2012-11-02 22:30:30

标签: ios xcode

  

可能重复:
  /usr/bin/codesign failed with exit code 1

我知道这个问题经常被问到。

我尝试过各种方式,但是我收到了这个错误:

    CodeSign /Users/iacopocricelli/Library/Developer/Xcode/DerivedData/Prova2-bvdyofacwyoznwbxshegsvewaoan/Build/Products/Debug-iphoneos/Prova2.app
        cd /Users/iacopocricelli/Desktop/Projects/Prova2
        setenv CODESIGN_ALLOCATE
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

setenv 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"
            /usr/bin/codesign --force --sign 48e8251951b5605143fe428c32f588209d2c1ce2 --resource-rules=/Users/iacopocricelli/Library/Developer/Xcode/DerivedData/Prova2-bvdyofacwyoznwbxshegsvewaoan/Build/Products/Debug-iphoneos/Prova2.app/ResourceRules.plist --entitlements /Users/iacopocricelli/Library/Developer/Xcode/DerivedData/Prova2-bvdyofacwyoznwbxshegsvewaoan/Build/Intermediates/Prova2.build/Debug-iphoneos/Prova2.build/Prova2.xcent /Users/iacopocricelli/Library/Developer/Xcode/DerivedData/Prova2-bvdyofacwyoznwbxshegsvewaoan/Build/Products/Debug-iphoneos/Prova2.app

        /Users/iacopocricelli/Library/Developer/Xcode/DerivedData/Prova2-bvdyofacwyoznwbxshegsvewaoan/Build/Products/Debug-iphoneos/Prova2.app: The operation was cancelled by the user.Command /usr/bin/codesign failed with exit code 1

我注册为开发者。 我安装了所有证书。 我检查了没有重复的证书。 我检查了包标识符。 我检查了构建设置中的代码签名。 我安装了正确的移动设备Q253 ------。xxxxx。*,我的包标识符是xxxxxx.myname 我试图创建其他项目 -

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

试试这个 单击Xco​​de右上角的管理器窗口。然后单击设备选项卡。然后在左侧的“库”下的“配置配置文件”中,单击右下角的刷新图标。

如果您在项目中正确使用了包标识符和代码签名设置,这通常可以解决大多数代码签名问题。

相关问题