The application is crashing on iPhone/iPad [with iOS 12] which does not have NFC capabilities.

Note:


NFC detection part is in Cocoa Pods Framework. There is the solution to make NFC framework optional in the app to prevent this crash but in this specific case, NFC detection happens in the framework itself. It is crashing on all iPhones which don't have NFC support.



Crash log for this:


dyld: Library not loaded: /System/Library/Frameworks/CoreNFC.framework/CoreNFC

Referenced from: /private/var/containers/Bundle/Application/9BF98F8A-775D-436A-92CA-4A6534686BF9/smart-interaction-client-iOS_Example.app/Frameworks/smart_interaction_client_iOS.framework/smart_interaction_client_iOS

Reason: image not found

Message from debugger: Terminated due to signal 6

The application is crashing on iPhone/iPad [with iOS 12] which does not have NFC capabilities.
 
 
Q