7

I've updated to Xcode 7.3 yesterday and can't really use the simulator since then. I always get this error as soon as I want to start to the app. When I deinstall the app on the simulator, everything works great. But that can't be a solution. This would take to long. I have also tried different simulators. On the iPhone itself it worked. I changed nothing since the upgrade

user2529173
  • 1,892
  • 6
  • 26
  • 40
  • Have you renamed Xcode.app? – christian mini May 02 '16 at 11:52
  • No I haven't. Neither did I change the bundle identifier – user2529173 May 02 '16 at 11:54
  • Have you try reset simulator a re-run xcode like this:http://stackoverflow.com/questions/25130558/unable-to-run-app-in-simulator-an-error-was-encountered-while-running-domain – christian mini May 02 '16 at 11:58
  • Yes, if I reset the simulator it works. Once. I would have to reset the simulator everytime I hit the run button. Similar to the deleting thing I do now – user2529173 May 02 '16 at 12:02
  • Possible duplicate of [An error was encountered while running (Domain = LaunchServicesError, Code = 0)](http://stackoverflow.com/questions/25632886/an-error-was-encountered-while-running-domain-launchserviceserror-code-0) – dwlz Sep 18 '16 at 04:19

2 Answers2

17

May be it's because CFBundleVersion key/value pair in app's Info.plist.

If your app's Info.plist does not contain a valid CFBundleVersion key/value pair.

doing a "Reset Contents & Settings" will work, would be better to set an appropriate CFBundleVersion in the Info.plist.

you can check more error info in ~/Library/Logs/CoreSimulator/CoreSimulator.log for error details also, more information about the problem in the simulated device's system log ~/Library/Logs/CoreSimulator/[Device UDID]/system.log.

For more detail check here: https://stackoverflow.com/a/26129829/5575752

Community
  • 1
  • 1
Ronak Chaniyara
  • 5,125
  • 3
  • 21
  • 50
5

"Reset Content and Settings" from iOS Simutalor menu options and launching simulator after Quitting may solve your issue.

In my case, Cleaning the build folder resolved the issue for me. I hope it helps someone!

(While holding down the Alt-key: Product > Clean build folder)

https://stackoverflow.com/a/31155562/2564720

Community
  • 1
  • 1
Nico
  • 1,663
  • 2
  • 21
  • 40