Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Automatic sign in and provisioning profile errors

Tags:

xcode

ios

I'm trying to run my iOS app on TestFlight. the app runs on the simulator but when I connect it to my iPhone and try to run it, the ffollowing error shows up. Automatic signing failed Xcode failed to provision this target. Please file a bug report at https://bugreport.apple.com/ and include the Update Signing report from the Report navigator.

Provisioning profile "iOS Team Provisioning Profile: com.uditi.clima" doesn't support the Keychain Sharing capability.

Provisioning profile "iOS Team Provisioning Profile: com.uditi.clima" doesn't include the keychain-access-groups entitlement.

I tried to change my bundle identifier. I am new to iOS Dev and not sure how things work. error screenshot

I switched on keychain sharing but an error appears - Automatic sign in failed

Thanks!


1 Answers

This is due to some certification issues over at Apple, but in the meantime here's a workaround:

  1. Open the project in Xcode. Select the project from the Project Navigator, then select your Target from the column.

  2. Click on the General tab, and under the Signing section, enable "Automatically manage signing".

  3. Next, click on the Capabilities tab and make sure both "Keychain Sharing" and "App Groups" are switched to "On". Ignore any error messages.

  4. An entitlements file will be generated in the Project Navigator. The file is recognizable by its extension .entitlements.

  5. Move the .entitlements file to the root folder by dragging it until it's right underneath the project file.

  6. Now, back in the "Capabilities" tab, turn off "Keychain Sharing" and "App Groups". Ignore any error messages.

  7. Select the project and go to its "Build Settings" tab. Directly beneath the tab, select both "All" and "Combined". Scroll down (or use the search, upper right) to find the "Code Signing Identity" section and change all of the options to iOS Developer.

  8. Next, scroll to (or search for) the "Code Signing Entitlements" section. Double click the text field next to "Code Signing Entitlements" and type in the entire name of the .entitlements file you moved before. For example, HelloWorld.entitlements.

This should solve the provisioning error until Apple addresses these certification issues.

like image 53
Prolix Avatar answered Apr 03 '26 10:04

Prolix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!