Abhishek Harsha
Abhishek Harsha

Reputation: 257

Xcode 8.1 stuck while trying to launch the app

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

Answers (4)

Alex
Alex

Reputation: 1601

I've deleted xcuserdata. it helped in my case

rm -rf /pat/to/[YourProject].xcodeproj/project.xcworkspace/xcuserdata

Upvotes: 1

Dren
Dren

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

Simon Moshenko
Simon Moshenko

Reputation: 2156

For me restarting mac helped, nothing else I googled did.

Upvotes: 6

hybridcattt
hybridcattt

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.

Apple guide

Upvotes: 5

Related Questions