2013-03-19 42 views
1

手機版本是6.1.2,Xcode sdk版本是6.1。 Command + R在模擬器中運行應用程序,但它工作正常,但Command + R在我的手機中運行應用程序,xcode顯示如下錯誤:iPhone代碼在Xcode中的錯誤代碼

CodeSign er error:產品類型'Application'需要代碼簽名6.1'

我不知道爲什麼,我該如何解決這個問題。

+0

必須添加您的證書對設備運行。 – KDeogharkar 2013-03-19 06:45:09

+0

[SDK'iOS5.1'中的產品類型'Application'需要代碼簽名](http://stackoverflow.com/questions/9899920/code-signing-is-required-for-product-type-應用程序在sdk-ios5-1) – jvnill 2013-03-20 02:53:03

回答

0

從蘋果Technical Note TN2250

[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0' 

Use the steps in section Assigning Provisioning Profiles to Build Configurations to correct your Code Signing Identities configuration and match the steps and figures closely. Specifically, the line reading "Any iOS SDK" must have a provisioning profile assigned to it and cannot be set to "Don't Code Sign".

+1

生成設置 - >代碼簽名 - >代碼簽名標識 - >調試,設置代碼簽名與您的認證。它運作良好。 – user2185250 2013-03-19 07:06:37

+0

非常好!如果解決了您的問題,請將問題標記爲已接受。 – 2013-03-19 07:58:38