16

I am trying to configure universal links on my App, but is not working. I read that a common cause of universal links are not working is that the entitlements file is not include in the build.

But I am not able to set the target membership of my entitlements (screenshot bellow), all the checkbox are disable.

enter image description here

Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
  • I think you should open Capabilities Tab in Project Settings, and disable every setting there, then re-enable what you require, see if it works. – iphonic Dec 28 '16 at 20:02
  • 26
    Add the entitlements file to Build Phases >> Copy Bundle Resources, Now membership must be in selected state :) – Swati Feb 02 '17 at 10:07
  • @Swati - I have the same problem as the original poster. You are correct that adding the entitlements file to the "Copy Bundle Resources" build phase does check the target membership box - however, it doesn't seem to resolve the problem. My app is still not launched when the user clicks on an associated link. Any suggestions? – Greg Brown Jun 14 '17 at 18:14
  • Never mind - my problem seems to have been due to the use of a wildcard pattern in my domain. Using a literal subdomain instead of a wildcard resolved the problem. – Greg Brown Jun 15 '17 at 12:40
  • Have You done Universal Link? Please help me. – Kishor Pahalwani Sep 07 '17 at 06:22

1 Answers1

33

As swati said in the comments.

Go to Build Phases > Copy Bundle Resources. Click the plus sign then add your entitlement file.

The target membership will then show.

Lian van der Vyver
  • 2,096
  • 1
  • 17
  • 26