Unable to Run App in Simulator: an Error Was Encountered While Running (Domain = Launchserviceserror, Code = 0)

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



Related Topics



Leave a reply



Submit