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

后端 未结 25 1107
天涯浪人
天涯浪人 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 00:56

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

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

    0 讨论(0)
  • 2020-12-01 00:57

    I had this problem when trying to run UI tests in a project containing AWS Cognito.

    Here's how I resolved it.

    1. Select the UI test target.
    2. Click on the Build Phases section.
    3. Click the plus to add a Copy Files phase
    4. In the Copy Files phase, change the destination to Frameworks (see the last image)
    5. Hit the plus below the Copy Files phase.
    6. Select the framework for which you're receiving an error and hit the Add button (yours will probably not be the first item in your project hierarchy). It should end up looking like this.
    7. Repeat steps 5 and 6 for all frameworks giving you an error.
    8. Run your tests.
    0 讨论(0)
  • 2020-12-01 00:59

    Might be related to this issue: "This app contains an app extension with an illegal bundle identifier" issue

    I had to format the bundle identifiers for my app and extension as follows:

    com.company.AppName
    com.company.AppName.Extension
    
    0 讨论(0)
  • 2020-12-01 00:59

    If you are here after having issues doing an integration with WatchOS 2.0, go to - ~/Library/Logs/CoreSimulator/[Device UDID]/system.log and if says something like WatchKit 2 app has frameworks; that's not allowed. then follow the link below.

    http://zyafa.me/blog/watchos-2-and-embedded-frameworks

    0 讨论(0)
  • 2020-12-01 00:59

    Do not add the google maps framework to the embedded lib section this solved my build break.

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

    I had this error in developing app for Apple Watch after adding in Info.plist: "App Transport Security Settings" and "Allow Arbitry Loads" = YES. (In WatchKit App, in WatchKit Extension is good!!) Deleting this two rows, it keeps working.

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