13

After I updated Xcode version to 12.5 I have problem with App Clip.

During App Store Connect uploading I receive warning:

TMS-90876: Missing entitlement - This app contains an app clip. The entitlement 'com.apple.developer.associated-appclip-app-identifiers' should be present and include the value of the app clip's application identifier.

there is no information how to add this entitlement

I tried to add 'com.apple.developer.associated-appclip-app-identifiers' key to entitlements file

<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
    <string>{my_clip_bundle_id}</string>
</array>

but the error appears

Provisioning profile "iOS Team Provisioning Profile: {my_bundle_id}" doesn't match the entitlements file's value for the com.apple.developer.associated-appclip-app-identifiers entitlement.

Konrad Piękoś
  • 164
  • 1
  • 9
  • The entitlement should be auto-generated. This is what I did: [guide](https://github.com/aheze/AppClipQuickStart) – aheze May 13 '21 at 15:26
  • 2
    It was, and it worked until Xcode 12.5. I see in your example there are no signs of com.apple.developer.associated-appclip-app-identifiers But did you try upload app to TestFlight ? Warning appears only after upload is finished – Konrad Piękoś May 13 '21 at 15:34
  • Interesting... some other people are [also getting the same problem](https://developer.apple.com/forums/thread/676064). Could be an Xcode 12.5 bug. – aheze May 13 '21 at 15:35
  • I am getting the same problem suddenly yesterday in xcode 12.5 despite a release working a week or so ago. We do not have an app clip, nor did we try to add one so this is rather mysterious. – Paul Bruneau Jun 22 '21 at 15:32
  • Did you fix this problem? I still not able to use app clip – iOS.Lover Jun 28 '21 at 12:03

2 Answers2

9

This seems to be a bug on Apple's side.

All you need to do is regenerate the provisioning profiles.

If you are using Automatically Manage Signing, there is a way to trick XCode to create a new profile for you. Go to Project Target > Signing & Capabilities page and add a new Capability (for example Sign in with Apple). This will force the regeneration of the provisioning profile. After that, you can remove the newly added Capability and upload a new build without any warnings.

budiDino
  • 13,044
  • 8
  • 95
  • 91
5

I was facing same issue. I was missing $(AppIdentifierPrefix).

adding below to .entitlement file of main app fixed for me.

<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
     <string>$(AppIdentifierPrefix)com.app.appclipbundleid</string>
</array>
Dharman
  • 30,962
  • 25
  • 85
  • 135
Dhaval Bhimani
  • 980
  • 1
  • 13
  • 24