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
-
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) – Dan Loewenherz Sep 18 '16 at 04:19
2 Answers
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

- 1
- 1

- 5,335
- 3
- 24
- 51
-
Thanks! That seems to be the problem. I had a look at recent commits and saw that I accidentally deleted the CFBundleVersion while removing the Facebook SDK from my project.,,. – user2529173 May 02 '16 at 13:48
-
it is still coming , i have Bundle identifier in my info.plist – Abhishek Thapliyal Aug 19 '16 at 15:09
-
3Check ~/Library/Logs/CoreSimulator/CoreSimulator.log to see error details, it will help@AbhishekThapliThapliyal – Ronak Chaniyara Aug 20 '16 at 04:57
"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)