Could not launch process launch failed: timed out waiting for app to launch

73,115

Solution 1

I had this problem when I used a Distribution certificate instead of Developer one when running the app from Xcode. You may check it out your target --> Build Settings --> Code signing.

As @AndyDynn pointed out in his comment: Make sure you do this on the "Target" build settings and not just the "Project" build settings.

Solution 2

I literally restarted my iPad, that was connected for testing the app, and that resolved the issue.

Solution 3

To run your app on a device, you will perform these tasks that follow:

  1. Request a development certificate.

  2. Add your device to the portal.

  3. Code sign your app.

  4. Launch your app on the device.

For more detail check this

Solution 4

If your provisioning profile and code sign everything is alright then try once Quit and Restart your XCode. It will work for me.

Solution 5

I just had this issue. I had to open the app on device and tap Trust Computer. No need for me to reboot everything 20 times, yay.

Share:
73,115

Related videos on Youtube

user317706
Author by

user317706

Updated on February 16, 2022

Comments

  • user317706
    user317706 over 2 years

    I am trying to launch my app on device. It is launching successfully on the simulator.

    • List item
    • I use 7.1 SDK
    • Xcode 5
    • And the device is a 7.1 iPhone 4S

    I have tried:

    • Clean
    • Clean Build Folder
    • Deleting app
    • Disconnecting/Reconnecting device
    • Booting device
    • restarting Xcode

    What can I do to make it work?

    Could it be something with Code Signing?

    Currently i have it set to 'Dont Code Sign'

    • apollosoftware.org
      apollosoftware.org about 10 years
      Have you checked your provision profiles? Go to organizer and ensure that your device is green and not yellow. It will allow you to troubleshoot from there. XCode5 has major improvements over the older versions to automatically sync your provision code signing profiles.
    • Anupam
      Anupam about 10 years
  • user1021430
    user1021430 almost 10 years
    For me, this was the provisioning profile being distribution, not the certificate.
  • AndyDunn
    AndyDunn almost 10 years
    Just make sure you do this on the "Target" build settings and not just the "Project" build settings.
  • Cyprian
    Cyprian almost 10 years
    Same thing happend to me iOS8 / iPhone 6 just launch the app
  • helmesjo
    helmesjo over 9 years
    Just updated to Xcode 6.1 and started getting this... Neither this solution, along with the two hints above won't solve this. Tried one iPhone 5 with latest iOS 7, and one iPad with iOS 8.1. Any clues?
  • Don Park
    Don Park over 9 years
    Clean, Quit iTunes and XCode, soft-reset device (long press home+power), Build and run your project on the device.
  • Krika
    Krika over 9 years
    Note: I had to do this to BOTH my product target AND my test target.
  • Nicholas Harlen
    Nicholas Harlen over 9 years
    This and @AndyDunn's comment above solved this for me. Might want to update the answer to include his comment. Thanks Andy. Literally hours of wasted time trying to figure this one out.
  • matrix4use
    matrix4use over 9 years
    My code signing is already set to Developer (Target) ... still getting the error though :-/ not sure what's different here !??!?
  • Terry Bu
    Terry Bu over 9 years
    rebooting my iPad after doing the provisioning profile thing worked for me
  • Kind Contributor
    Kind Contributor about 9 years
    I had to open it on the iPad, and then click Trust on the cert. Then I debugged again and it worked.
  • Mrugesh Tank
    Mrugesh Tank about 9 years
    Can I upload app in testflight via selecting developer certificate? Cause my app runs fine until I uploded to testflight and after uploding to testflight via distribution certificate this error is going to occur.
  • Victor Engel
    Victor Engel almost 9 years
    I built twice in a row. The first time no problem. Second time, I got this message. I don't think it had anything to do with provisioning profiles, signing etc. All that was unchanged. Instead. I think what happened is that the app was terminated on the device but not in Xcode, which thought it still had a connection. There was probably something related to that preventing the launch. Problem was solved by disconnecting the cable from the device and reconnecting, then trying the build again.
  • Hristo Atanasov
    Hristo Atanasov about 6 years
    Why negative vote? This is a real solution to the same problem/error that is caused by many or different things. And no one of the other suggestions worked.
  • Mahmut K.
    Mahmut K. over 4 years
    My phone was automatically reset and then it worked correctly.
  • Mattia Ducci
    Mattia Ducci over 4 years
    just a restart the iPad, clean project, rebuild and delete derived data
  • Jaidyn Belbin
    Jaidyn Belbin about 3 years
    This worked for me too. Such an annoying bug, since it builds and installs, and then the console in VS Code just says "Could not launch application on xxx iPhone"... very helpful.
  • Admin
    Admin over 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.