问题
Xcode Simulator won't boot. After running the project the simulator does not boot and the load bar is stuck at the end. Also it shows this error after I closed the simulator showing this error
The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)
Any help is appreciated!
回答1:
8 months ago the answer. This problem occurs when you install an alternative Xcode version like betas or previous versions. To solve this problem you need reinstall Xcode command line tools.
As there is no reinstall option in xcode-select
command you need to remove the current command line tools as bellow:
sudo rm -rf /Library/Developer/CommandLineTools
Verify if xcode-select
is the right path
xcode-select -p
The output is similar to:
/Applications/Xcode.app/Contents/Developer
Reinstall the command line tools
sudo xcode-select --install
Now you need to reboot the system.
After reboot your system you need to launch the Xcode. Son after the Xcode additional components will appear.
After concluding the installation your simulator works right.
来源:https://stackoverflow.com/questions/53115570/xcode-10-0-simulator-error-mach-error-308-ipc-mig-server-died