Xcode 8 cannot run on device, provisioning profile problems mentioning Apple Watch
This did work for me:
- Disable bluetooth on the iPhone
- Disconnect & reconnect iPhone
- Build and Run
- Enable bluetooth again when you are finished with the debugging session
I had the same issue today - XCode Version 8.0 (8A218a) - and fixed it with two simple steps (instead of the more complicated approach above:
- add the Apple Watch to member center (did not find a copy&paste option either)
- edit the development provisioning profile and add the watch to devices, save
- go to XCode prefs, move the old provisioning profile to trash (right click on the name) and download the new version
- set the new provisioning profile in project editor
No restart, clean or anything else needed. Worked like a charm.
After putting my Apple Watch on Power Reserve (or turning it off, or Airplane mode, or...) and waiting a bit for Xcode to realize it was gone, I was able to run the app on my phone again.
Airplane mode is easiest.