简体   繁体   中英

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.

对我来说,重新启动 mac 有帮助,我在谷歌上搜索的其他内容都没有。

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

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.

I've deleted xcuserdata. it helped in my case

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM