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.)