2014-02-25 16 views
0

有一個應用程序可以在模擬器中運行,但在設備中不起作用。我的Xcode版本是5.0.2,OS X版本是10.9.1。有錯誤日誌:只有一個應用程序錯誤:命令/ usr/bin/codesign失敗,退出代碼爲1

CodeSign /Users/luke/Library/Developer/Xcode/DerivedData/eRep-hfteeueqsdstlddzcfobqwmsgsio/Build/Products/Debug-iphoneos/eRep.app cd /Users/luke/CoreProgram/eRep_svn_Code/eRep setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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" Using code signing identity "iPhone Developer: Zhenghong Zhu (XXX....)" and provisioning profile "LuDevelopment" (XXX....) codesign --force --sign XXX.... --resource-rules=/Users/luke/Library/Developer/Xcode/DerivedData/eRep-hfteeueqsdstlddzcfobqwmsgsio/Build/Products/Debug-iphoneos/eRep.app/ResourceRules.plist - ObjC -all_load --entitlements /Users/luke/Library/Developer/Xcode/DerivedData/eRep-hfteeueqsdstlddzcfobqwmsgsio/Build/Intermediates/eRep.build/Debug-iphoneos/eRep.build/eRep.xcent /Users/luke/Library/Developer/Xcode/DerivedData/eRep-hfteeueqsdstlddzcfobqwmsgsio/Build/Products/Debug-iphoneos/eRep.app ll_load: unknown architecture name Command /usr/bin/codesign failed with exit code 1

ll_load: unknown architecture name

Command /usr/bin/codesign failed with exit code 1

必須有在Keychain Access.I沒有相同的證書建立了一個新的應用程序,它可以在同一證書的設備運行。我不知道爲什麼只有這個應用程序不起作用。

感謝您的幫助。

+0

我構建了一個新項目,並將所有資源複製到它。新項目可以在設備上運行。 – LukeYe

+0

清爽爲我工作。 Xcode 6. – 2014-10-10 19:41:10

+0

這是損壞的框架或資產文件。 –

回答

0

unknown architecture name這就是問題所在,請檢查您關於體系結構的項目設置或調試目標設置。

+0

謝謝。我找到了原因。我應該爲「其他鏈接器標誌」添加標誌「-ObjC」和「-all_load」,但我犯了一個錯誤。我將它們添加到「其他代碼簽名標誌」中。 – LukeYe

+0

恭喜!對不起,我沒有直接指出問題.'- ObjC -all_load --entitlements'也是錯誤的信息。 – simalone

+0

沒關係。非常感謝! – LukeYe

0

您是否已將設備的UDID通過iOS開發人員中心添加到配置文件?

+0

當然。其他應用程序可以在此設備上運行。 – LukeYe

+0

確保您的鑰匙串和開發人員帳戶中沒有多個開發分佈配置文件,其名稱相似但有效期不同。 Xcode會感到困惑。此外,請嘗試轉到首選項>帳戶>選擇您的團隊>查看詳細信息>單擊左下角的刷新按鈕,以確保您的證書是最新的。 –

+0

謝謝。我嘗試刷新Xcode中的帳戶設置,並使用開發者帳戶檢查配置文件。 Xcode顯示相同的錯誤。 – LukeYe

相關問題