Forum Xamarin.iOS

Entitlements not published

In Xamarin iOS, when I modify Entitlements.plist and enable Associated Domains or NFC, then Archive with an ad-hoc provisioning profile, the resulting .ipa file does not contain the entitlements.

I use this:

codesign -d --entitlements :- "MyApp.iOS.app"

to examine the .ipa.

Entitlement.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:XY.com</string>
    </array>
    <key>com.apple.developer.nfc.readersession.formats</key>
    <array>
        <string>NDEF</string>
        <string>TAG</string>
    </array>
</dict>
</plist>

codesign output:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>application-identifier</key>
    <string>AAAAAAA.com.XY</string>
    <key>get-task-allow</key>
    <false/>
    <key>com.apple.developer.team-identifier</key>
    <string>AAAAAAA</string>
    <key>keychain-access-groups</key>
    <array>
        <string>AAAAAAA.com.XY</string>
    </array>
</dict>
</plist>

Why are the entitlements not in the .ipa?

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    Do you set the correct entitlements file here

    I'm not very familiar with codesign could it print the value of the entitlements? Did you try it on an XCode packaged .ipa?

  • Thanks. I did not know about that field. I will fill it and see if it works.

    codesign, and checking entitlements is described here (cannot post a link):

    Technical Q&A QA1798
    Checking Distribution Entitlements
    developer.apple.com

Sign In or Register to comment.