Search code examples
iosiphoneswiftxcode9.1

Xcode 9.1 cant start the Iphone simulator


I just installed Xcode 9.1,before Xcode 9.1,when I click the "Play" button on top,the Iphone simulator start automatically.But after install Xcode 9.1,the iPhone simulator didnt start,no error,no phone appear on screen,only Xcode show build success.

Can somebody tell me how to solve this?So I can test the project on Iphone simulator.

Edit

After looking for a question in So,I able to start the simulator,by doing

Click on Target next to Play Button -> Edit Scheme -> Run -> Change the Executable to "My Project"

The iphone simulator can start,but it give me this error

enter image description here

Any idea?


Solution

  • There seems to be a issue with iPhone simulator.You can see this issue in fastlane's git hub page as well. Happens more often when you are using command line tools.

    Solution : Simply tap command + space opens hot search, type simulator and hit enter,

    enter image description here

    your simulator might not load and show an error thats fine. Now go to actions select simulator and say Reset Content and Settings.

    enter image description here

    Now go back to your Xcode and re run the code. Hope this resolves the issue