Reputation: 257
I'm facing problem while running a project in xcode 8.1. Xcode gets stuck during "Waiting for app to launch" process and it keeps loading forever. it does not throw any error also. Project builds fine but it isn't running on the simulator. I tried deleting the derived data. Tried deleting the .xcworkspace file.
I've looked upon these answers
https://stackoverflow.com/a/13834705/4863339
https://stackoverflow.com/a/16037836
These answers don't seem to be helping me much.
Upvotes: 8
Views: 6625
Reputation: 1601
I've deleted xcuserdata. it helped in my case
rm -rf /pat/to/[YourProject].xcodeproj/project.xcworkspace/xcuserdata
Upvotes: 1
Reputation: 2107
Restarting the simulator helped me in a similar situation.
Another case: Xcode 12. Was stuck on device launch in debug after a while or on the first breakpoint.
Clean, deep clean (Command-Option-Shift-K), restart Xcode, remove the app from the device, run again.
Don't know which step exactly helped, but now all works as usual.
Upvotes: 4
Reputation: 3041
Could it be that you disabled automatic start of the app?
Open your scheme via "Edit scheme..." menu, and make sure that "launch" setting in Run settings is set to Automatically.
Upvotes: 5