2010-09-13 79 views
3

我想我的第一個應用程序提交給應用程序商店。當我編譯(配置設置爲 '分配')我得到的錯誤如下:協同設計失敗,退出代碼1

協同設計 構建/分銷-的iPhoneOS/xxxxx.app CD /用戶/ XXXXXXX /文檔/ XXXXXX SETENV IGNORE_CODESIGN_ALLOCATE_RADAR_7181968 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate setenv PATH 「/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/ sbin「 /usr/bin/codesign -f -s」iPhone Distribution:XXXXXXXXXX「 --resource-rules =/Users/xxxxxxxx/Documents/L egginit/build/Distribution-iphoneos/xxxxxxx.app/Entitlements.plist --entitlements /Users/xxxxxxxx/Documents/xxxxxxx/build/xxxxxx.build/Distribution-iphoneos/xxxxxxx.build/xxxxxx.xcent /Users/xxxxxxx /Documents/xxxxxx/build/Distribution-iphoneos/xxxxxxx.app

/Users/xxxxxxx/Documents/xxxxxx/build/Distribution-iphoneos/xxxxxx.app: 無效的資源選擇規則(S) 命令/ usr /斌/協同設計與 退出代碼失敗1

我仔細檢查過如下:

1)代碼簽名標識設置爲「任何iPhone OS設備」,並在右手邊我Distrbution證書。

2)我創建了Entitlements.plist,取消選中get-task-allow。

3)捆綁標識符與我的分配預配配置文件匹配。

4)鑰匙串訪問有兩個證書,'iPhone Developer'和'iPhone Distribution'。

有很多人接受這個錯誤,但我一直在看他們整個上午,我沒有看到任何與我所做的不同。

任何幫助,非常感謝。

Stephen

+0

你添加的Entitlements.plist和未選中的get任務,允許將標誌? – lukya 2010-09-13 12:58:25

+0

是的,我有.... – Stephen 2010-09-13 13:17:28

+0

[Command/usr/bin/codesign失敗並退出代碼1]的可能重複(http://stackoverflow.com/questions/2017756/command-usr-bin-codesign-failed-與出射碼-1) – 2011-09-07 22:10:35

回答

3

問題解決了,我創建了一個新的投影並複製了我所有的類。它完全編譯好的。

0

我剛剛有同樣的問題....我通過創建一個新的發佈設置配置文件並重新配置我的所有構建設置解決它。

相關問題