Reputation: 165
I am trying to run the app that I am developing on the simulator but it just build the app but don't run it. Testing it on the device is ok.
I tired restarting both XCode and iMac, clean and clean build, but still won't run the app on the simulator.
How can I resolve this?
Upvotes: 0
Views: 4716
Reputation: 19622
I followed the last answer by RockSuger on here app runs on device but won't run on simulator
Xcode > About XCode
My version was 9.2
Deployment Info > Deployment Target
and changed the old target from 9.1 to 9.2
Upvotes: 0
Reputation: 2104
Please try resetting your simulator. It will work.
from top menu click "Simulator" -> "Reset contents and settings.."
Upvotes: 2
Reputation: 1
Recently,i find out that if you have modified you /etc/hosts files and change 127.0.0.1 to another domain rather than localhost,XCode will fail to attatch the process on your simulator.
Restore you /etc/hosts file may fix your problem.
Upvotes: 0