-2

可能重复:
/usr/bin/codesign 失败,退出代码为 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 我尝试创建其他项目-

我该如何解决这个问题?

4

1 回答 1

0

试试这个 点击 Xcode 右上角的管理器窗口。然后单击设备选项卡。然后在左侧 Library 下的 Provisioning Profiles 上,然后单击右下角的刷新图标。

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

于 2012-11-02T22:54:42.677 回答