Closed anderssmedman closed 4 years ago
I have this same issue now. Does anyone have a work-around? They removed the library from non-NFC devices in iOS 12.
It would be helpful to know which calls are crashing the app.
If it is crashing on startup, maybe it is the call checking if NFC is available during plugin initialization. Maybe there's a better way to do that with iOS 12?
It would help if someone could provide instructions on how to cause crash.
I do not know more than what I wrote in previous post. The app builds nicely and works as should in my dev env, it is Apple that says it crashes at startup. But, I dropped all iOS development and gave them away to an other company. No more Apple development because they change the gameplan over and over again.
problem: App got rejected by Apple Review
cause: CoreNFC is not always present, e.g. iPad w/iOS 12
solution: mark CoreNFC as Optional
--> change CoreNFC linking in plugin.xml
https://github.com/chariotsolutions/phonegap-nfc/blob/master/plugin.xml#L137
Do you think it would be possible to automate this weak linking via cordova config.xml anyhow?
As written (https://github.com/chariotsolutions/phonegap-nfc/issues/355#issuecomment-466500200): changing this plugin's plugin.xml#L137 will automate this.
I added the framework as optional to "Linked Frameworks and Libraries", but I still get the same error message:
dyld: Library not loaded: /System/Library/Frameworks/CoreNFC.framework/CoreNFC
Referenced from: /private/var/containers/Bundle/Application/B97054D3-BF8B-4C7A-BFE2-631C1EF6B66C/App.app/Frameworks/CordovaPlugins.framework/CordovaPlugins
Reason: image not found
(lldb)
I have tried cleaning the build folder, no dice. Is there something else I'm missing here? I'm running 12.1 on iPhone SE.
@maxfahl I've managed to fix that by going into the xCode project -> Build Phases -> Link Binary With Libraries -> CoreNFC.framework should be Optional
instead of Required
. That's for xCode 11.
This summer I created the first version of an iOS app that reads NDEF formatted tags flawless. This November I did som UI updates, test build on local iPhone 7 and Phone X with iOS 12.1, works perfect so I sent it to App Store Connect for review.
Apple review rejected, they give me only the crash log that says it crashes on startup, from the log:
Is this plugin supposed to work with iOS 12.1 ? Thanks!