Launch iOS simulator from Xcode and getting a black screen, followed by Xcode hanging and unable to stop tasks

后端 未结 26 2559
一整个雨季
一整个雨季 2020-11-29 05:16

I\'m having trouble running my basic iPhone application (while going through the Stanford iTunes CS193p lectures) in the iOS simulator.

I\'ve been searching for a wh

26条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 05:30

    I had the same issue with Xcode... black screen on launching apps, no debugging and clicking would lock up Xcode.

    I finally found the problem... following the lead that the simulator could not connect to Xcode I took a look at my etc/hosts file and found that months ago to solve a different issue I had edited the host file to map localhost to my fixed IP instead of the default... my value:

    10.0.1.17 localhost

    This should work since that is my IP, but changing it back to the default IP fixed Xcode...

    127.0.0.1 localhost

    Hope this helps.

提交回复
热议问题