Could not launch process launch failed: timed out waiting for app to launch
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:
Request a development certificate.
Add your device to the portal.
Code sign your app.
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.
Related videos on Youtube
user317706
Updated on February 16, 2022Comments
-
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 about 10 yearsHave 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 about 10 yearscheck this stackoverflow.com/questions/10087985/…
-
user1021430 almost 10 yearsFor me, this was the provisioning profile being distribution, not the certificate.
-
AndyDunn almost 10 yearsJust make sure you do this on the "Target" build settings and not just the "Project" build settings.
-
Cyprian almost 10 yearsSame thing happend to me iOS8 / iPhone 6 just launch the app
-
helmesjo over 9 yearsJust 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 over 9 yearsClean, Quit iTunes and XCode, soft-reset device (long press home+power), Build and run your project on the device.
-
Krika over 9 yearsNote: I had to do this to BOTH my product target AND my test target.
-
Nicholas Harlen over 9 yearsThis 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 over 9 yearsMy code signing is already set to Developer (Target) ... still getting the error though :-/ not sure what's different here !??!?
-
Terry Bu over 9 yearsrebooting my iPad after doing the provisioning profile thing worked for me
-
Kind Contributor about 9 yearsI had to open it on the iPad, and then click Trust on the cert. Then I debugged again and it worked.
-
Mrugesh Tank about 9 yearsCan 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 almost 9 yearsI 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 about 6 yearsWhy 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. over 4 yearsMy phone was automatically reset and then it worked correctly.
-
Mattia Ducci over 4 yearsjust a restart the iPad, clean project, rebuild and delete derived data
-
Jaidyn Belbin about 3 yearsThis 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 over 2 yearsYour 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.