NFC Missing required entitlement

Hi, I have created an application for NFC tag scanning and read the tag data. For that, i enabled the capability: NearField Communication Tag reading.

Then I added 2 tag formats in the entitlement <?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>www.google.com</string> </array> <key>com.apple.developer.nfc.readersession.formats</key> <array> <string>NDEF</string> <string>TAG</string> </array> </dict> </plist>

then i added info.plist: <key>NFCReaderUsageDescription</key> <string>We need to use NFC</string> <key>com.apple.developer.nfc.readersession.felica.systemcodes</key> <array> <string>8005</string> <string>8008</string> <string>0003</string> <string>fe00</string> <string>90b7</string> <string>927a</string> <string>12FC</string> <string>86a7</string> </array> <key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key> <array> <string>D2760000850100</string> <string>D2760000850101</string> </array>

but even though when i run the app and tap the nfc card im getting some error: NFCTag didBecomeActive 2025-08-29 19:08:12.272278+0530 SAFRAN_NFC[894:113090] NFCTag didDetectTags 2025-08-29 19:08:12.282869+0530 SAFRAN_NFC[894:113520] [CoreNFC] -[NFCTagReaderSession _connectTag:error:]:730 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement} 2025-08-29 19:08:12.284044+0530 SAFRAN_NFC[894:113090] NFCTag restarting polling 2025-08-29 19:08:12.372116+0530 SAFRAN_NFC[894:113090] NFCTag didDetectTags 2025-08-29 19:08:12.381535+0530 SAFRAN_NFC[894:113378] [CoreNFC] -[NFCTagReaderSession _connectTag:error:]:730 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement} 2025-08-29 19:08:12.382246+0530 SAFRAN_NFC[894:113090] NFCTag restarting polling 2025-08-29 19:08:12.470667+0530 SAFRAN_NFC[894:113090] NFCTag didDetectTags 2025-08-29 19:08:12.479336+0530 SAFRAN_NFC[894:113378] [CoreNFC] -[NFCTagReaderSession _connectTag:error:]:730 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement} 2025-08-29 19:08:12.480101+0530 SAFRAN_NFC[894:113090] NFCTag restarting polling

Could you please help me wha tis the issue and give solution for that?

This error can be caused due to a couple reasons, based on the NFC tag being used.

Based on your entries:

For com.apple.developer.nfc.readersession.iso7816.select-identifiers, missing the Application ID used in a Select command will cause this error.

For com.apple.developer.nfc.readersession.felica.systemcodes, the System code must be one of the provided values. If an invalid system code is used, this error will be returned.

You also seem to have defined NDEF, so if this is an NDEF tag, this error will be returned if you start an NDEF session but the entitlement is missing.

I can only go with what you have shown here, and if these settings are correct, then there is a mismatch of AIDs or system codes.

If you confirm that everything is correct and matches, it is also possible that you have an issue with your build so the entitlements and the Info.plist entries and not being built into the app.

NFC Missing required entitlement
 
 
Q