2013-10-15 25 views
0

每當我嘗試在iPhone上運行我的應用程序時,它會崩潰我按下按鈕或選項卡欄。我收到以下錯誤:error: failed to launch -- failed to get the task for process 334我試圖創建一個新的分發證書,但它不起作用。無法在iPhone上測試應用程序

這一切都可以在模擬器中使用。


感謝, 阿卜杜拉Shafique先生

回答

2

The problem is because you are trying to debug your application using distribution provisioning profile. If you want to run your application in debug mode, you have to sign it with development provisioning profile and certificate (both in build settings and in target). If you are trying to create a distributable, sign it with distribution credentials and add Entitlements.plist (again both in build settings and target).

您必須選擇爲每個目標開發配置文件。

進入您的目標=>構建設置=>代碼簽名=>代碼簽名身份=>選擇所有的開發配置文件

在Xcode中5,您下載並添加您的開發供應的個人資料後,首先選擇你的供應配置文件:目標=>構建設置=>代碼簽名=>發放模板=>選擇所有的開發配置文件

此之後,你可以選擇你的代碼簽名身份=>選擇所有的開發配置文件