CoreNFC framework missing in iPad and non NFC devices

I'm developing an app that between other things reads NFC tags using CoreNFC. I'm checking if NFC is available by using `NFCNDEFReaderSession.readingAvailable`. On iOS 11 it would return false allowing the app to run on devices that don't support NFC.

On iOS all the betas up to date the app crashes while loading the dyld with an error saying that the image for CoreNFC framwork was not found.

Is this a bug? Is there a new way of checking for NFC?

It works on the simulator. Crash only happens on divices not supporting NFC

Replies

Fund the solution. For iOS 12 you need to mark the CoreNFC framework as optional. That allows to run the app without crashaes

I have this same problem. My app worked just fine until I updated my iPad to iOS12. not it crashes with:
dyld: Library not loaded: /System/Library/Frameworks/CoreNFC.framework/CoreNFC
pablor I believe that your solution is correct but I am not sure how to implement it. How to I mark a framework as optional?
TIA

I have the same problem with iOS 12 and some applications we built in Xamarin, did you find out how to mark the framework as optional?