Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.2 cannot set entitlements membership

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

like image 246
Guilherme Torres Castro Avatar asked Dec 28 '16 19:12

Guilherme Torres Castro


People also ask

How do I set entitlements in Xcode?

Select iOS > Resource > Property List. Name the new file " foo. entitlements " (typically, " foo " is the target name) Click the (+) next to "Entitlements File" to add a top-level item (the property list editor will use the correct schema due to the file extension)

Where is entitlements in Xcode?

You can add entitlement from Project Target. Note in Xcode 11.3 (and some earlier versions) the tab is "Signing & Capabilities" and capabilities are added using "+ Capability" at the top left corner of the tab subwindow instead of via the on/off switches.

How do I check my entitlements?

Check the Entitlements In Your Build Log and App You'll find the name of the provisioning profile Xcode used to sign your app in the invocation of the codesign tool's command-line parameters. This command prints a plist that contains all of the entitlements built into the app.


1 Answers

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.

like image 92
Lian van der Vyver Avatar answered Sep 19 '22 11:09

Lian van der Vyver