NFFieldNotification not loaded or does not exist

Hi everyone, I created a simple application for iOS using swift 4.2, this application use Core NFC, but ever use scanner NFC this erro appear:


2019-01-03 13:26:59.854792-0200 NFCteste[10884:3626226] [general]  connection to service named com.apple.nfcd.service.corenfc: Exception caught during decoding of received message, dropping incoming message.
Exception: Exception while decoding argument 0 (#2 of invocation):
Exception: decodeObjectForKey: class "NFFieldNotification" not loaded or does not exist


Someone can to help me?

Gabriel - did you ever find out what this was?

You should post some code, to allow for investigation.

The same happened to me when I tried to read NFC tags from Android NFC Tools app.

ulian_onua, have you found solution?
i have the same problem(

Do you have any updates? I still get this problem



2019-12-13 12:14:00.483582+0700 FishTagReader[33245:3902097] Creating client/daemon connection: 65E045AC-568C-48C0-A996-A4898A500636

2019-12-13 12:14:00.502022+0700 FishTagReader[33245:3902097] Got the query meta data reply for: com.apple.MobileAsset.MacinTalkVoiceAssets, response: 0

2019-12-13 12:14:00.507249+0700 FishTagReader[33245:3902097] Consumed extension

2019-12-13 12:14:00.535654+0700 FishTagReader[33245:3902097] Got the query meta data reply for: com.apple.MobileAsset.MacinTalkVoiceAssets, response: 0

tagReaderSessionDidBecomeActive

2019-12-13 12:14:13.451103+0700 FishTagReader[33245:3902102] [xpc.exceptions] <NSXPCConnection: 0x280830000> connection to service on pid 33083 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

(

0 CoreFoundation 0x000000018ba649a0 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 1227168

1 libobjc.A.dylib 0x000000018b78d0a4 objc_exception_throw + 56

2 Foundation 0x000000018bf50164 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2339172

3 Foundation 0x000000018bd29754 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 83796

4 Foundation 0x000000018bf725d4 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2479572

5 Foundation 0x000000018bd7e898 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 432280

6 Foundation 0x000000018bd7ec04 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 433156

7 Foundation 0x000000018bd68fe0 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 344032

8 Foundation 0x000000018bf4e004 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2330628

9 libxpc.dylib 0x000000018b63254c 217DC1A7-7821-3F1F-A837-3825D770EF05 + 50508

10 libxpc.dylib 0x000000018b6328c4 217DC1A7-7821-3F1F-A837-3825D770EF05 + 51396

11 libdispatch.dylib 0x0000000104e7acc4 _dispatch_client_callout4 + 16

12 libdispatch.dylib 0x0000000104e94ab0 _dispatch_mach_msg_invoke + 420

13 libdispatch.dylib 0x0000000104e819bc _dispatch_lane_serial_drain + 304

14 libdispatch.dylib 0x0000000104e95900 _dispatch_mach_invoke + 520

15 libdispatch.dylib 0x0000000104e819bc _dispatch_lane_serial_drain + 304

16 libdispatch.dylib 0x0000000104e82744 _dispatch_lane_invoke + 500

17 libdispatch.dylib 0x0000000104e8dae4 _dispatch_workloop_worker_thread + 1324

18 libsystem_pthread.dylib 0x000000018b781fa4 _pthread_wqthread + 276

19 libsystem_pthread.dylib 0x000000018b784ae0 start_wqthread + 8

)

(

0 CoreFoundation 0x000000018ba649a0 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 1227168

1 libobjc.A.dylib 0x000000018b78d0a4 objc_exception_throw + 56

2 Foundation 0x000000018bf72820 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2480160

3 Foundation 0x000000018bd7e898 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 432280

4 Foundation 0x000000018bd7ec04 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 433156

5 Foundation 0x000000018bd68fe0 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 344032

6 Foundation 0x000000018bf4e004 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 2330628

7 libxpc.dylib 0x000000018b63254c 217DC1A7-7821-3F1F-A837-3825D770EF05 + 50508

8 libxpc.dylib 0x000000018b6328c4 217DC1A7-7821-3F1F-A837-3825D770EF05 + 51396

9 libdispatch.dylib 0x0000000104e7acc4 _dispatch_client_callout4 + 16

10 libdispatch.dylib 0x0000000104e94ab0 _dispatch_mach_msg_invoke + 420

11 libdispatch.dylib 0x0000000104e819bc _dispatch_lane_serial_drain + 304

12 libdispatch.dylib 0x0000000104e95900 _dispatch_mach_invoke + 520

13 libdispatch.dylib 0x0000000104e819bc _dispatch_lane_serial_drain + 304

14 libdispatch.dylib 0x0000000104e82744 _dispatch_lane_invoke + 500

15 libdispatch.dylib 0x0000000104e8dae4 _dispatch_workloop_worker_thread + 1324

16 libsystem_pthread.dylib 0x000000018b781fa4 _pthread_wqthread + 276

17 libsystem_pthread.dylib 0x000000018b784ae0 start_wqthread + 8

)

tagReaderSession didInvalidateWithError: Session invalidated unexpectedly

Any updates?

I get the same error in my app and in the app that apple provides https://developer.apple.com/documentation/corenfc/creating_nfc_tags_from_your_iphone

I have seen the error below on an iPhone 8 running iOS 14.4.2, Model number NQ7X2LL/A

<NSXPCConnection: 0x282000460> connection to service on pid 88 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

I belive this to be a CoreNFC's way of saying that it's detecting and active reader field interfering with its own reader field because I only saw this when there was a nearby active reader that was interferring.

NFFieldNotification not loaded or does not exist
 
 
Q