I just updated the Xcode to 5.1.1. today. And after it when i run my application using the iOS 7.1 simulator. Xcode opened the simulator and displayed the status Running app on Simulator. It took too long to open the application. After that i hit the Stop Button on Xcode to kill the application.
And here the problem invoked. Xcode never stopped or played the application on simulator. I kept hitting the "Play" & "Stop" button. But nothing happened.
So, i restarted my Xcode but the same happened. Then, i restarted my Mac, got the same issue. Does anybody knows why this is happening.
Any guidance will be helpful.
I finally resolved this issue. It took really long time to configure what the problem was.
Some time ago, I had edited my etc/hosts file and changed the localhost value to 128.0.0.1.
But found the link: https://discussions.apple.com/message/24478004#24478004
Which prompt to set localhost default value to 127.0.0.1
To change the value, see the given link: https://discussions.apple.com/thread/4488310
Doing this, and restart the Xcode. It did the trick.
Try resetting the simulator. Open the iOS Simulator and choose iOS Simulator → Reset Content and Settings… . Also clean your project with Shift Command K and clean your build folder with Option Shift Command K .
Also try creating a fresh user account on your computer and try it there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.