Hello,
I was trying to build an apple watch app but I encountered some problems. When I try to run any app project from XCode in my apple Watch I receive error:
"Failed to code sign "HeartBeat WatchKit Extension".
None of the valid provisioning profiles include the devices:
Apple Watch (Janne).
Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles."
And when XCode tries to fix the issue I receive an error message:
"Unable to fix code signing issue.
Xcode failed to resolve the issue. Check your code signing settings; ensure you have a matching signing certificate and provisioning profile installed; and try again."
I went to see the listed Devices from my Developer account and I saw my Apple Watch twice (with the same UDID but with different name) in the Certificates, Identifiers & Profiles -> Devices -> All Devices -list. Then I tried to disable one of devices listed (I was thinking there cannot be devices with the same UDID) but it didn't work. I disabled both but now I cannot enable either of those (or add a new device with the UDID of my watch) because it says "A device with number 'abc...xyz' already exists on this team.".
I contanced to Apple Developer Support and they emailed me links to set my project settings correctly:
https://developer.apple.com/library/ios/qa/qa1814/_index.html
https://developer.apple.com/library/ios/technotes/tn2407/_index.html
I followed the instructions described in those links but the same problem persists. I have also deleted old profiles, added new ones and removed those from my iPhone/Watch but it hasn't helped.
I was able to run an app in my Watch when I created totally new Apple ID and used it as a development account.
Do you have any tips to solve my problem so I don't have to use my secondary account? Should I contact the support team again?
Best Regards,
Janne