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

IosIphoneXcodeXcode5

Ios Problem Overview


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'

Ios Solutions


Solution 1 - Ios

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 - Ios

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

Solution 3 - Ios

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 - Ios

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 - Ios

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.

Solution 6 - Ios

Below are 2 awesome hacks that have not been mentioned yet:

HACK #1:

Lock your phone, press XCode start, wait till XCode says "unlock your device to launch", then unlock your phone, it will be launched successfully, works every time.

HACK #2:

If your goal is just to debug the app, here is another simple and straight-forward approach:

  1. After the app is deployed, launch it manually.
  2. Goto XCode -> Debug -> Attach to Process ... to choose your app from the list, then debug properly.

This works well for me, and it saves lots of time. I hope this helps, thanks!

Solution 7 - Ios

I got the same problem and after looking at the answers here I found mine. The issue at hand was: my dev distribution certificate was gone from iOS Dev Center, so I just assume it had timed out. I didn't get a nice warning though, just the above error - installing worked but debugging didn't. So I had Xcode regenerate a new one for me.

Solution 8 - Ios

One more thing to try if you've tried the above: i found this link about quitting itunes to avoid the timeout. This works for me with xcode 5.1

Solution 9 - Ios

In my case there was no value at Targets -> Build Settins ->Provisioning Profile. Though Code Signing looked ok)

Solution 10 - Ios

I cleaned out my provisional profiles, rebooted the iPhone, rebooted the computer, and it worked for me.

Solution 11 - Ios

Just to throw out an additional suggestion to anyone coming across this problem (it's been burning me frequently lately) -- try going to the Targets -> (Your Target) -> General -> Team and re-selecting the same Team, which forces Xcode to update profiles for you.

That has been the culprit for me a couple of times. Seems to happen specifically if you've recently re-downloaded a distribution certificate for new devices or w/e. Or if you've just dumped your Provisioning Profiles directory in general.

Solution 12 - Ios

I had the same problem and I tried all the suggested steps but I managed to get it deployed and run only after I powered off my iphone.

Solution 13 - Ios

Checked my Targets and code signing details, didn't help. I did three things:

  1. Clean Build Folder
  2. Close Xcode and delete everything in Derived Data
  3. Rebooted my device

Everything worked fine after that. I had changed some App Transport Security setting in my info.plist right before this occurred. Not sure if it is related or if only one of my 3 steps were necessary, but it worked.

Solution 14 - Ios

Make sure the Provisioning Profile setting in your environment is set to your development profile: Project > Build Settings > Code Signing

Consider setting it in your Target settings and the Pod project (in case using Cocoa Pods).

In case the development profile is not present create or download it: Certificates, Identifiers & Profiles > Provisioning Profiles

Solution 15 - Ios

After following the above, it still didn't work (from xCode 6). But after rebooting the phone and deleting the app, it worked.

Solution 16 - Ios

Check Product Name for dots "." "." are not allowed in Product name.

Solution 17 - Ios

Selection in provisioning profiles may cause this problem. So while launching an app on to the device, make sure you are using the development profile & not the distribution profile. I have been facing the same issue. But got away with it using the same process.

Check for Project > Build Settings > Provisioning profile & select your development profile.

And also take care of Code Signing Identity in the same tab. Make sure you choose both the identities of Developer & NOT of Distribution.

Solution 18 - Ios

Below two steps solved for me:

For xcode version: 7.2

  • 1.Select any of your simulator to run ( just start your run, no need to load the app completely).
  • 2.Stop it.
  • 3.Then select your device and run.

This solved in my case.

Solution 19 - Ios

option + command + shift + k and then run the project did the trick for me.

Solution 20 - Ios

If your goal is to just launch the app and debug it, you can also edit the schema to "Wait for executable to be launched" and run the app manually. The setting is under Edit schema > Run > Info > Launch. Choose "Wait for executable to be launched" instead of "Automatically". It will wait for you to run the app (by manually tapping it) instead of timing out.

Solution 21 - Ios

As all of the above answers didn't helped for me I'll publish my solution:

Deleting all the occurrences of xcuserdata folders in .xcodeproj and .xcworkspace and restarting Xcode fixed the problem. To delete it right click your_app_name.xcodeproj and/or your_app_name.xcworkspace in your app folder and select "Show Package Contents". I hope that help someone to save some time.

Solution 22 - Ios

Just restart my Device and works everything fine

Solution 23 - Ios

I tried:

  1. Restart the device (iPhone)
  2. Clean build the XCode project

Then it works.

Solution 24 - Ios

Check whether the device memory is full.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser317706View Question on Stackoverflow
Solution 1 - IosmelbicView Answer on Stackoverflow
Solution 2 - IosKmb40View Answer on Stackoverflow
Solution 3 - IosGajendra RawatView Answer on Stackoverflow
Solution 4 - IosUpkeshView Answer on Stackoverflow
Solution 5 - IosdaihoveyView Answer on Stackoverflow
Solution 6 - IosRainCastView Answer on Stackoverflow
Solution 7 - IosJonnyView Answer on Stackoverflow
Solution 8 - IossunilrView Answer on Stackoverflow
Solution 9 - IosNaloiko EugeneView Answer on Stackoverflow
Solution 10 - IosScuttleView Answer on Stackoverflow
Solution 11 - IosshortstuffsushiView Answer on Stackoverflow
Solution 12 - IosAninomView Answer on Stackoverflow
Solution 13 - IosknarfView Answer on Stackoverflow
Solution 14 - Iosasaf amView Answer on Stackoverflow
Solution 15 - IosJack BeNimbleView Answer on Stackoverflow
Solution 16 - IosVladView Answer on Stackoverflow
Solution 17 - IosRushi DeshpandeView Answer on Stackoverflow
Solution 18 - IosMumthezir VPView Answer on Stackoverflow
Solution 19 - IosChaudhry TalhaView Answer on Stackoverflow
Solution 20 - IostheAnthonyLaiView Answer on Stackoverflow
Solution 21 - IosHristo AtanasovView Answer on Stackoverflow
Solution 22 - IosAhtazazView Answer on Stackoverflow
Solution 23 - IosRedRView Answer on Stackoverflow
Solution 24 - IoschinthakadView Answer on Stackoverflow