Search code examples
iosxcodewatchkitapple-watch

Xcode - Error launching WatchKit Extension


I've successfully built a basic Watch/iPhone app and am getting the following error when trying to run on my devices:

"Error Launching 'app_name WatchKit Extension'

The operation couldn’t be completed. Unable to launch because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user."

The app does install to the watch/phone, but I want to use the extension to view console output while running the app.

I am using automatic provisioning, which is not giving any errors. I am not using Apple's paid developer program. Has anybody experienced this before? Cheers.


Solution

  • I resolved this by opening the app on the Apple Watch for the first time, then selecting "Trust developer" on the prompt that appeared.