Xcode 6 process launch failed: timed out trying to

2019-03-08 04:30发布

I can't debug my app because when I run it, Xcode gives me the error:

Process launch failed: timed out trying to launch app

In the device I see a black screen and after the error message the app starts. How can I fix this?

I tried to change the code signing identity and the provisioning profile, and to refresh the provisioning profiles in the Xcode > Preferences > Accounts > Details tab.

I'm using Xcode Version 6.0.1 (6A317) with an iPad mini, running iOS 8.0 and a MacBook with OSX 10.9.4.

After this, if the iPad goes into sleep mode (the screen turns off) I can't wake it anymore; I have to do a soft reset.

标签: ios xcode xcode6
12条回答
别忘想泡老子
2楼-- · 2019-03-08 05:24

This warning is shown when you try to run and debug your code directly in device but you are using distribution profile in your Build Settings. To directly run the code in device and debug, you need to use development profile in your Build Settings of Xcode. After setting the development profile, just reboot your device clean your Xcode project and run again. I hope this helps !!

查看更多
唯我独甜
3楼-- · 2019-03-08 05:26

You are using distribution provisioning profile rather than development profile. check this link

查看更多
beautiful°
4楼-- · 2019-03-08 05:27

I am using Xcode 6.2, running on iPhone 4 with iOS 7.1.2, the problems happen to me as well.

It turned out that the Project and Targets' Code Signing settings are different from each other! And that's what is causing the issue.

Code Signing

To solve the issue, you must make sure that their Code Signing settings is the same.

查看更多
时光不老,我们不散
5楼-- · 2019-03-08 05:30

In my case I was using the development profile, but somehow, in Build Settings > Code Signing, the Provisioning Profile for Debug was empty.

But before setting it to "iOS Team Provisioning Profile", I had to reset my account since it said " is Not on Any Development teams" - Xcode > Preferences > Accounts - Remove my account (click "-") - Add the account again

That fixed the problem

查看更多
迷人小祖宗
6楼-- · 2019-03-08 05:36

How to Fix:

I fix it with:

  • clean project (Product > Clean)
  • hard reset device (power button + home button)
  • delete app from device
  • close xcode
  • CLOSE ITUNES (itunes must be closed)
  • re-open Xcode and run!

I think that iTunes was the problem.


EDIT: 2017/02: Solution still Woks (Thanks to @SalGad for information).

查看更多
一夜七次
7楼-- · 2019-03-08 05:36

I had this but nothing previously posted seemed to work. This is what I did to fix the issue in Xcode 6.3.2:

  1. Go to Product->Scheme->Edit Scheme...
  2. Select the Run Scheme
  3. Select the Info tab
  4. Make sure the settings are as follows:
    • Build Configuration is set to "Debug"
    • Debug Executable is checked
    • Launch Automatically is checked
查看更多
登录 后发表回答