Hi there, I am using Core NFC and I established the connection with the card, but after sending the command 'tag.sendCommand()' I receive this message: -[NFCTagReaderSession _connectTag:error:]:748 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement}. The version of XCode I am using is 16.3, and the iPhone version is iOS 18.4
Here is my entitlements file: <key>com.apple.developer.nfc.readersession.formats</key> <array> <string>NDEF</string> <string>TAG</string> </array>
And my info.plist: <key>NFCReaderUsageDescription</key> <string>NFC</string> <ke>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key> <array> <string>A000112233445566</string> </array>
Signing & Capabilities has added Near Field Communication Tag Reading.