The operation couldn ' t be completed. (launchserviceserror error 0.)

Source: Internet
Author: User

Problem Description:

When running Xcode, the compilation code succeeds, but the login simulator fails, showing an error: Theoperation couldn ' t be completed. ( Launchserviceserror error 0.)

A similar error is reported when modifying the bundle ID of your project.

Workaround:

1th method. Click on the current emulator, click IOS simulator->reset Content and Settings...->reset, then reset the emulator, then compile the code to log in to the emulator successfully

2nd method. Click Xcode->product->clean or direct cmd+shift+k shortcut key cleanup

3rd method. Remove the currently running app from the emulator and reload it (press and hold the emulator's screen and click on the app to delete the current error).

4th method. Modify the bundle's version number in the Info.plist file

My problem is that the above methods can only be temporarily resolved, when I change the code, and then re-error, and then I put the resources in my project (that is, the package that stores pictures) to delete, and then re-build the group, but the resource package name is not called resources, and then re-clean, The problem is solved, I think the reason may be my resources and Xcode conflict, then Xcode can not pack the app to the simulator it?

In general, manually delete the folder inside the emulator sandbox, this problem may occur, the quickest and most effective way is to reset the emulator, instead of restarting the emulator ...

The operation couldn ' t be completed. (launchserviceserror error 0.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.