com.apple.developer.networ" /> com.apple.developer.networ" /> com.apple.developer.networ"/>

How to add an entitlement to my iOS app to quickly test that it works before requesting Apple

3k Views Asked by At

I want to test adding an entitlement to my iOS app called "MyApp". For instance lets say following is the entitlement:

<key>com.apple.developer.networking.gamecenter</key>
    <true/>

I add the above to my .entitlements file. But the moment I do that Xcode starts complaining stating the following error.

Automatic signing is unable to resolve an issue with the "MyApp" target's entitlements.
Automatic signing can't add the com.apple.developer.networking.gamecenter entitlement to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove this entitlement from your entitlements file and its associated functionality from your code.

I understand the error. It wants me to add the entitlement to my provisioning profile by going into the developer website. But is it not even possible to test my code by adding the entitlement before even I request Apple to grant the entitlement to me? This is really strange. I firstly want to test my code and see whether adding the entitlement works for my app or not.

1

There are 1 best solutions below

0
Itay Brenner On

You won't need the entitlement for testing on iOS/iPadOS Simulator but for read devices, you will need to request the entitlement. You can request it here: https://developer.apple.com/contact/request/networking-multicast

Source: https://developer.apple.com/news/?id=0oi77447