It may sound familiar but this time i was trying to add an extension to a project which was created in XCode 4.0 or below. Not sure it is same as any other tasks exit to do this, Below is the concept trying to achive.
- Any application which want to display few markers on the map can utilize this extension which accepts a string form of lat and long values.
Added the extension and it gave popup like below
Encountered the below error
Searching the forum links suggested to keep the bundle identifier and the extension to be the same with a period and a string for the extension. which in my case wasn't. But even after doing this and resetting the simulator or running in a different simulator, it did not resolve the issue. Looking more to debug this, thought to look at the simulator logs which is available at ~/Library/Logs/CoreSimulator/CoreSimulator.log
It had the below error log
Nov 16 08:35:54 -MacBook-Pro.local com.apple.dt.Xcode[59577] : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7fbde4bcf520 {Error=ExecutableTwiddleFailed, ErrorDescription=Failed to chmod file:///Users/Retheesh/Library/Developer/CoreSimulator/Devices/259196B4-E8DC-4B40-BFAA-61EACC39EE8B/data/Library/Caches/com.apple.containermanagerd/Temp/Bundle/Application/6AEDBD0E-8C2D-4DCC-8A7F-3A400EF1FF73/myapp.app/PlugIns/MapViewerExtension.appex/MapViewerExtension : No such file or directory}
The errors were still the same!
When opened the Xcode and ran an older project having no extension, that also gave same error. Complete mess. Luckily it got resolved when cleaned the project.
References:
http://stackoverflow.com/questions/25632886/an-error-was-encountered-while-running-domain-launchserviceserror-code-0
http://stackoverflow.com/questions/25130558/unable-to-run-app-in-simulator-an-error-was-encountered-while-running-domain
No comments:
Post a Comment