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
Remove or Edit User Location Blue Pulsing Circle
How to Fix Cocoapod .Modulemap File Not Found
Setting Device Orientation in Swift Ios
How to Convert Double to Int in Swift
Using a Dispatch_Once Singleton Model in Swift
Get Nth Character of a String in Swift Programming Language
Round Trip Swift Number Types To/From Data
How to Convert Data to Hex String in Swift
Shall We Always Use [Unowned Self] Inside Closure in Swift
Why Create "Implicitly Unwrapped Optionals", Since That Implies You Know There's a Value
Swift - Sort Array of Objects With Multiple Criteria
Xcode 8 Beta 3: Expected ',' Joining Parts of a Multi-Clause Condition
What Is the In-Practice Difference Between Generic and Protocol-Typed Function Parameters
Using 'Self' in Class Extension Functions in Swift