【问题标题】:Code Sign Error - xCode 4.5 [duplicate]代码符号错误 - xCode 4.5 [重复]
【发布时间】:2012-10-23 14:58:48
【问题描述】:

可能重复:
/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 我尝试创建其他项目-

我该如何解决这个问题?

【问题讨论】:

标签: ios xcode


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-27
    • 1970-01-01
    • 1970-01-01
    • 2012-12-31
    • 1970-01-01
    • 2013-07-24
    • 2014-09-03
    相关资源
    最近更新 更多