Unable to run app in Simulator: An error was encountered while running (Domain = LaunchServicesError, Code = 0)
This has now been resolved. The problem was caused by ShareKit library added by CocoaPods for compatibility reasons. After removing the library and all related code, the app successfully launched in simulator. I recommend checking the system log for more details on the issue as to me it pointed me in the right direction (stating the name of conflicting library).
Unable to run app in Simulator : An error was encountered while running (Domain = LaunchServicesError, Code = 0)
This happens if your extension's bundle ID isn't prefixed with your app's bundle ID. For example if you app is com.mycompany.appname
, your extension should be something like com.mycompany.appname.today
.
Something else to note, if you're using Swift and are setting a principal class with NSExtensionPrincipalClass
, you'll want to make sure your extension target sets "Defines Module" to "Yes" and make the value of NSExtensionPrincipalClass
equal to "YourModuleName.YourClassName".
Unable to run the Simulator The operation couldn’t be completed. (LaunchServicesError error 0.)
From the screenshot, it's clear that your Info.plist is missing a CFBundleVersion ("Bundle Version") key. If that key is missing, it can cause this problem.
Related Topics
Wait for Asynchronous Operation to Complete in Swift
Avaudioplayer Throws Breakpoint in Debug Mode
How to Set Imageview in Circle Like Imagecontacts in Swift Correctly
How to Use Static Cells in Uitableview Without Using Storyboards
How to Do Programmatically Gradient Border Color Uibutton with Swift
How to Combine Two Dictionary Instances in Swift
How to Make a Function Execute Every Second in Swift
Presenting a View Controller Modally from an Action Sheet's Delegate in iOS8 - iOS11
How to Enable Arc Project-Wide in Xcode 4.2
How to Set Cmake_C_Compiler and Cmake_Cxx_Compiler for Building Assimp for iOS
Wireless iPhone App Distribution - Problem with Itms-Services Protocol
Attempting to Load the View of a View Controller While It Is Deallocating... Uisearchcontroller
Share Extension to Open Containing App
How to Detect Whether Custom Keyboard Is Activated from the Keyboard's Container App
How to Load Local PDF in Uiwebview in Swift
Display Done Button on Uipickerview
How to Prevent from Scrolling Uitableview Up When Nsfetchedresultscontroller Add New Record