I'm diving into iOS 13's new CoreNFC capabilities, and I'm struggling to get NFCTagReaderSession working. After setting up my entitlements and instantiating an NFCTagReaderSession and delegate I attempt to start the session by calling nfcTagReaderSession?.begin(). My session immediately gets invalidated with this error:Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement}I have updated my distribution profile accordingly , I have followed the documentation here for my entitlements file: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_nfc_readersession_formatsI have also added the appropriate "Privacy - NFC Scan Usage Description" in my Info.plist.My developement profile contains only one string "NDEF" when I enable NFC reading in capabilities.Has anyone gotten this to work yet? Is this just a problem with Xcode 11 or iOS 13?
Post
Replies
Boosts
Views
Activity
Hi,
We re using an "Apple Developer Enterprise Program " and would like to create an AppClip with iOS14 beta2 + Xcode 12
Unfortunately, the "on demand install" is not available in the capability list , and so we are not able to create a profile with this new capability.
Does anyone know how to proceed ?
thx for help.
Hi ,
Since iOS14.6 official release , I have seen a regression in the reading of NDEF message with Type5 tags only !!!
This is not a problem with an invalid NDEF or with our Tag : It was tested with many Type5 Tags and tags formatted and created with different iOS NFC apps
· This problem seems to affect only ISO 15693 tags : tested with ISO 14443A, we were able to detect it
So, Type5 tags are only impacted. Not Type4A.
How to reproduce it :
Install the iOS14.6 or iOS14.7 beta
Download the coreNFC reference App from https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app
Use a Type5 Tag with a NDEF Formatted message
Run NFC Tag reader , and see that when scanning tag, NDEF is not detected.
When debugging sample code, the NFCNDEFReaderSessionDelegate is never called.
Thx for your help