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.
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)
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With