Xcode 8 cannot run on device, provisioning profile problems mentioning Apple Watch

IosSwiftIos10Xcode8Fastlane Match

Ios Problem Overview


I am running OS X El Capitan and using the Xcode 8 GM seed (8A218a) and I am trying to run my app on my iPhone 6 with iOS 10 GM seed, 10.01 (14A403), which is paired to my Apple Watch running watchOS 3 GM seed (14S326).

I am using Match for handling provisioning profiles and certificates, it has been working beautifully so far.

I recently changed the bundle identifier, so created a new App Id in member center and reconfigured match etc. I have the development certificate and provisioning profile installed on my Mac. I have deleted the old certificates and the old provisioning profiles.

Everything is just working fine running on the simulator. But when I try to run it on my iPhone Xcode 8 is displaying on error:

> Provisioning profile "match Development com.XXX.YYY" doesn't include the currently selected device "ZZZ's Apple Watch".

It shows another error as well:

> Code signing is required for product type 'Application' in SDK 'iOS 10.0'

This is under Target -> General: enter image description here

Target -> Build Settings looks like this: target_build_settings

I don't have an Apple Watch extension for this app. So why is Xcode 8 giving me errors relating to my Apple Watch?

Also what does the second error mean? Code signing is required for product type 'Application' in SDK 'iOS 10.0'?

Thanks!!

Ios Solutions


Solution 1 - Ios

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

Solution 2 - Ios

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.

Solution 3 - Ios

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.

Solution 4 - Ios

I have the same issue with Version 8.0 (8A218a). It seems to go away when I:

  1. Reselect the certificate (via UI)
  2. Clean all (ctrl+cmd+shift+k)
  3. Restart Xcode
  4. Run the projet (which is possible after 1-3)

If I change the code, I get the same error again. Do not be fooled by Xcode actually indicating that everything is ok in the UI - but still gives the error. Its 1-4 again.

Regarding the 2. error. Looking at your screenshot I see no matching "Signing certificate" - which the message indicates is required. The above 1-4 also removed that error for me.

I really do hope there is a better solution to this issue and that we are missing something obvious! The restart-run cycle is not that efficient ;-)

Solution 5 - Ios

I was getting the same errors, what happened was iTunes/Apple updated the provisioning profile and I had to accept the new update. Once I logged into "developer.apple.com" I just had to accept the new update and then go back to Xcode, close the project, reopen, and then download the provisioning profile to my new iPhone and then run the project. This is what worked for me.

I didn't have to delete anything or what the other answers are suggesting.

Solution 6 - Ios

Xcode 8:

select the target -> General -> Signing -> select Automatically manage signing

then Xcode will help you to fix this.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSajjonView Question on Stackoverflow
Solution 1 - IosFelixView Answer on Stackoverflow
Solution 2 - IosSeltsamView Answer on Stackoverflow
Solution 3 - IosPhil LodenView Answer on Stackoverflow
Solution 4 - IosjayjunckView Answer on Stackoverflow
Solution 5 - IosLukas BimbaView Answer on Stackoverflow
Solution 6 - IosJohn LeeView Answer on Stackoverflow