App Store Connect Operation Error: Invalid entitlement for core nfc framework

Viewed 1557

When trying to archive my React Native application and upload to the app store I get the following error:

enter image description here

Here is my main app's entitlements file.

<?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>aps-environment</key>
    <string>development</string>
    <key>com.apple.developer.nfc.readersession.formats</key>
    <array>
        <string>TAG</string> <!-- added TAG -->
        <string>NDEF</string>
    </array>
    <key>com.apple.security.application-groups</key>
    <array>
        <string>group.com.myapp.onesignal</string>
    </array>
</dict>
</plist>
2 Answers

As at posting this answer, you cannot include NDEF in readersession in entitlements.

<key>com.apple.developer.nfc.readersession.formats</key>
<array>
    <string>TAG</string>
</array>

You need to add the following to your .entitlements file.

    <key>com.apple.developer.nfc.readersession.formats</key>
    <array>
        <string>TAG</string> <!-- added TAG -->
        <string>NDEF</string>
    </array>

You then also need to make sure you re-archive your app. This was the reason of my issue persisting.

Related