2012-11-02 65 views
-2

Possible Duplicate:
/usr/bin/codesign failed with exit code 1Code Sign Error - xCode 4.5

我知道這個問題是非常常見的問題。

我想一切辦法,但我得到這個錯誤:

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 我試圖創建其它項目 -

我怎麼能解決問題呢?

+0

你有沒有嘗試過這裏的所有解決方案:http://stackoverflow.com/questions/1090288/usr-bin-codesign-failed-with-exit-code-1 – titanofold

+0

是的,我嘗試了這個網站的所有解決方案。 –

回答

0

試試這個 點擊Xcode右上角的管理器窗口。然後點擊設備標籤。然後在左側的Library下的Provisioning Profiles中單擊右下角的刷新圖標。

如果您在項目中正確安裝了包標識符和代碼簽名設置,這通常會解決大部分代碼簽名問題。