Xcode 10, Swift 4 app with CoreNFC crashes in review on iOS 12

前端 未结 3 505
慢半拍i
慢半拍i 2021-01-12 00:15

My app created for iOS submitted to Appstoreconnect gets rejected as it crashes on launch in their review process.

My app uses CoreNFC framework. So

相关标签:
3条回答
  • 2021-01-12 00:28

    I had the same problem with my NFC Reader. It looks like iOS12 does not include CoreNFC for older devices (iPhone 6s, SE and older).

    I managed to fix it with device checks. In case an old device is trying to open the app I show a completely different storyboard with an error message that the device is not supported.

    To see an example, here is a link to the app: https://itunes.apple.com/us/app/nfc-reader-for-iphone/id1249686798

    0 讨论(0)
  • 2021-01-12 00:31

    Go to Project settings -> General -> Linked Frameworks and Libraries

    Add CoreNFC.framework with status optional

    0 讨论(0)
  • 2021-01-12 00:36

    In my case, we couldn't restrict to only devices with NFC because we uploaded the original build of the app without that requirement and Apple does not allow you to add new restrictions for new versions of apps that didn't exist in previous versions.

    Uploading a new build with the CoreNFC.framework under Project settings -> General -> Linked Frameworks and Libraries while I type this up and will update this comment as soon as we know whether or not it worked.

    edit it worked. :)

    0 讨论(0)
提交回复
热议问题