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

后端 未结 25 1109
天涯浪人
天涯浪人 2020-12-01 00:39

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 everythi

相关标签:
25条回答
  • 2020-12-01 01:12

    There are a number of things that can cause this error. The best general answer is to search the console log for CoreSimulator, as the simulator logs the underlying problem when it displays this message.

    0 讨论(0)
  • 2020-12-01 01:13

    I had this problem when I added an Apple Watch target to my app, and accidentally removed the InterfaceController.m file. Adding back the file in the target fixed the problem.

    0 讨论(0)
  • 2020-12-01 01:13

    For me, the problem occurs because I added my framework (GoogleMobileAds.framework in my case) to Embedded Binaries, not Linked Frameworks and Libraries.

    For your information, AdMob instructs you to use Add Files to "Your Project" menu on Xcode, but I was too lazy to obey the instruction.

    0 讨论(0)
  • 2020-12-01 01:14
    1. First "Reset Content and Settings"
    2. If you didn't fill the build number and fill it and Run.

    It's solved for me.

    0 讨论(0)
  • 2020-12-01 01:16

    I get rid from the issue by the given steps for simulator

    1. Way

    1. Reset Content and Settings of Simulator.
    2. Clean your project by Cmd+Shift+K.
    3. Clear your Derived Data.
    4. The last one which is more important change your Bundle Identifier by "com.yourcompanyname.projectname" like "com.facebook.Facebook"

    2. Way

    You can do only be the given line, it works for me

    The last one which is more important change your Bundle Identifier by "com.yourcompanyname.projectname" like "com.facebook.Facebook"

    Thanks and enjoy programming.

    0 讨论(0)
  • 2020-12-01 01:21

    I got this issue by adding a folder reference named "Resources".

    If I give it another name, then it runs !

    0 讨论(0)
提交回复
热议问题