Chano Tarongoy
Chano Tarongoy

Reputation: 165

XCode: App Won't Run on Simulator

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

Answers (3)

Lance Samaria
Lance Samaria

Reputation: 19622

I followed the last answer by RockSuger on here app runs on device but won't run on simulator

  1. I checked which version of Xcode I was running. Click: Xcode > About XCode My version was 9.2
  2. In the project navigator I went to the blue project icon in the top of the upper left corner, clicked Deployment Info > Deployment Target and changed the old target from 9.1 to 9.2

Upvotes: 0

Vaibhav Gautam
Vaibhav Gautam

Reputation: 2104

Please try resetting your simulator. It will work.

from top menu click "Simulator" -> "Reset contents and settings.."

Upvotes: 2

chainsaw
chainsaw

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

Related Questions