the question of NFC

use NFC api has some error:

2024-07-15 15:42:59.633782+0800 TestNFC[16022:1038141] tagReaderSessionDidBecomeActive 2024-07-15 15:43:03.608427+0800 TestNFC[16022:1038141] [xpc.exceptions] <NSXPCConnection: 0x282ba90e0> connection to service with pid 58 named com.apple.nfcd.service.corenfc: Exception caught during decoding of received selector didDetectExternalReaderWithNotification:, dropping incoming message. Exception: Exception while decoding argument 0 (#2 of invocation): Exception: decodeObjectForKey: class "NFFieldNotification" not loaded or does not exist

how can I fix it ? thanks

the question of NFC
 
 
Q