CoreNFC SIGABRT

I'm trying to use the CoreNFC Framework within a Cocoa Touch Framework.

When I try to start a Session I get a SIGABRT thrown by a Thread in Queue "com.apple.corenfc.session (serial)"

Had the exact same code in a normal Project and it worked.


Any ideas how I could solve this Problem?

Replies

+1 I have the same situation, use Qt framework, after calling beginSession method receive SIGABRT signal.

I found the reason of SIGABRT, you need to add Privacy — NFC Scan Usage Description key to info.plist in other case it will cause __CRASHING_DUE_TO_PRIVACY_VIOLATION__ error and SIGABRT signal