简体   繁体   中英

iOS Simulator is Crashing on startup

I am using Xcode 12 with the iOS 13.4 Simulator. On bootup, I get this crash report.

Failed to start launchd sim: could not bind to session, launchd sim may have crashed or quit responding.

What can cause this? It works in Xcode 11 but not in Xcode 12.

Can you make yourself Admin and run below commands on Terminal:

sudo chown root:admin /tmp
sudo chmod 1777 /tmp
sudo chown root:wheel /private/tmp
sudo chmod 1777 /private/tmp

So it problem was my project had permissions that it can only run in sudo mode. When I tried to run the simulator in sudo mode, it failed. I had to change the permissions of my project, to be able to run in non sudo mode. When this happened, I could run the iOS simulator perfectly fine.

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