Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run app in Simulator: An error was encountered while running (Domain = LaunchServicesError, Code = 0)

After successfully compiling the project in Xcode 6, I am unable to run it in the simulator with the above mentioned message. I did all the possible research, tried everything and still no advances.

I am not working with swift, neither I use widgets or extensions, so please do not suggest solutions caused by these as can be seen in similar questions.

If someone found a possible cause (or solution!!) other than these, please help. Thanks

like image 809
Miki Avatar asked Sep 17 '14 11:09

Miki


3 Answers

"Reset Content and Settings" from iOS Simutalor menu options and launching simulator after Quitting solved my issue.

Reset Content and Settings

like image 180
Sauvik Dolui Avatar answered Nov 05 '22 09:11

Sauvik Dolui


Cleaning the build folder resolved the issue for me. I hope it helps someone!

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

like image 125
Hannes Lohmander Avatar answered Nov 05 '22 10:11

Hannes Lohmander


I tried every other solution listed here. Well, I ported my project from Swift 1.2 to Swift 2.0. The application was stuck even after a lot debugging and launch services error 0 was reported.

solution: It happens because of framework compilation.

App target -> Build Phases -> Embed Frameworks.

So mark copy only when installing on. Clean the project and run it!

enter image description here

like image 33
Alvin George Avatar answered Nov 05 '22 09:11

Alvin George