CoreNFC に関するすべてのドキュメントを読み、WWDC 2019 のタグの読み取りと書き込みに関するすべてのビデオを見ましたが、私の問題に関する情報は見つかりませんでした。オフィスの開いているドア/窓のデータをタグに書き込む必要があります。NFCタグを読み取ってswiftで簡単なプロジェクトを作成しますが、電話をUSBリーダーにかざすと、ログに次の問題が発生します:
2019-06-28 13:45:10.994351+0300 officeProj[872:62700] [xpc.exceptions] <NSXPCConnection: 0x283cec120> connection to service on pid 90 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 0x00000001a324aa04 2D4D4E9A-884C-31FE-90BE-B324E7B02A3F + 1223172
1 libobjc.A.dylib 0x00000001a37574fc objc_exception_throw + 56
2 Foundation 0x00000001a2f806dc 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 2324188
3 Foundation 0x00000001a2d5d6f4 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 83700
4 Foundation 0x00000001a2fa2410 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 2462736
5 Foundation 0x00000001a2db22b8 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 430776
6 Foundation 0x00000001a2db2624 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 431652
7 Foundation 0x00000001a2d9cc20 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 343072
8 Foundation 0x00000001a2f7e580 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 2315648
9 libxpc.dylib 0x00000001a378e63c AC3BE951-8497-3F21-8844-8319F2577646 + 50748
10 libxpc.dylib 0x00000001a378e9b4 AC3BE951-8497-3F21-8844-8319F2577646 + 51636
11 libdispatch.dylib 0x00000001011d6d10 _dispatch_client_callout4 + 16
12 libdispatch.dylib 0x00000001011f0b1c _dispatch_mach_msg_invoke + 420
13 libdispatch.dylib 0x00000001011dda10 _dispatch_lane_serial_drain + 304
14 libdispatch.dylib 0x00000001011f196c _dispatch_mach_invoke + 520
15 libdispatch.dylib 0x00000001011dda10 _dispatch_lane_serial_drain + 304
16 libdispatch.dylib 0x00000001011de7a0 _dispatch_lane_invoke + 508
17 libdispatch.dylib 0x00000001011e9b74 _dispatch_workloop_worker_thread + 1364
18 libsystem_pthread.dylib 0x00000001a3a97f5c _pthread_wqthread + 304
19 libsystem_pthread.dylib 0x00000001a3a9aaa0 start_wqthread + 8
)
(
0 CoreFoundation 0x00000001a324aa04 2D4D4E9A-884C-31FE-90BE-B324E7B02A3F + 1223172
1 libobjc.A.dylib 0x00000001a37574fc objc_exception_throw + 56
2 Foundation 0x00000001a2fa2658 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 2463320
3 Foundation 0x00000001a2db22b8 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 430776
4 Foundation 0x00000001a2db2624 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 431652
5 Foundation 0x00000001a2d9cc20 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 343072
6 Foundation 0x00000001a2f7e580 6511D0A1-2D67-36FA-BA0E-8FB08A6380FE + 2315648
7 libxpc.dylib 0x00000001a378e63c AC3BE951-8497-3F21-8844-8319F2577646 + 50748
8 libxpc.dylib 0x00000001a378e9b4 AC3BE951-8497-3F21-8844-8319F2577646 + 51636
9 libdispatch.dylib 0x00000001011d6d10 _dispatch_client_callout4 + 16
10 libdispatch.dylib 0x00000001011f0b1c _dispatch_mach_msg_invoke + 420
11 libdispatch.dylib 0x00000001011dda10 _dispatch_lane_serial_drain + 304
12 libdispatch.dylib 0x00000001011f196c _dispatch_mach_invoke + 520
13 libdispatch.dylib 0x00000001011dda10 _dispatch_lane_serial_drain + 304
14 libdispatch.dylib 0x00000001011de7a0 _dispatch_lane_invoke + 508
15 libdispatch.dylib 0x00000001011e9b74 _dispatch_workloop_worker_thread + 1364
16 libsystem_pthread.dylib 0x00000001a3a97f5c _pthread_wqthread + 304
17 libsystem_pthread.dylib 0x00000001a3a9aaa0 start_wqthread + 8
)
私は decodeObjectForKey: class "NFFieldNotification" について何かを見つけようとしましたが、実際には Google ページに関する情報はありません。多分誰かが私を助けることができますか?それとも、iOS 13 ベータ 2 または xCode 11 ベータ 2 は生の製品なのでしょうか? この質問が将来役立つとしましょう...