how do I add an entitlement?

Asked on 2024-07-30

1 search

To add an entitlement, you need to follow specific steps depending on the type of entitlement you are working with. Here are some examples from different sessions at WWDC:

  1. App Group Entitlement:

    • Make sure to declare the entitlement in your Info.plist.
    • Format your group identifiers correctly.
    • Use the appropriate Foundation API container URL for the security application group identifier to get the path to your shared container.
    • For more details, you can refer to the documentation for app groups entitlement.

    For more information, you can check the session What’s new in privacy.

  2. Local Network Usage Entitlement:

    • Include a local network usage description in your app's Info.plist.
    • This is necessary if your app or its dependencies include Bonjour browsing or advertising, custom multicast, custom broadcast, or unicast connections that rely on the local network.

    For more details, you can check the session What’s new in privacy.

  3. Wallet Pass Entitlement:

    • For ticket holders to use their passes for contactless entry, you need to request the appropriate entitlement.
    • Include the required pass bundle content and consider including newly introduced assets.

    For more information, you can check the session What’s new in Wallet and Apple Pay.

If you need more specific guidance on adding a particular entitlement, please provide more details or refer to the relevant session from WWDC.