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

后端 未结 25 1204
天涯浪人
天涯浪人 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: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.

提交回复
热议问题