Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
194 stars 43 forks source link

`NDEF is disallowed` error during app upload #116

Closed msmtamburro closed 1 year ago

msmtamburro commented 1 year ago

We have been happily using all of Yubico's recommended entitlement settings with our app for several years, and then encountered this upload issue after changing just two things:

  1. The version of Xcode we used to build the app (13.4.1 -> 14.1)
  2. The iOS Deployment Target (12.4 -> 13.6)

Has anyone else encountered such an issue? I see some chatter online (going back several years) regarding this kind of NDEF error.

2022-12-01 10:03:14.565 xcodebuild[31452:71001753] Progress 0%: Sending SPI analysis to App Store Connect…
2022-12-01 10:03:15.930 xcodebuild[31452:71001753] Progress 0%: Waiting for App Store Connect SPI analysis response…
2022-12-01 10:03:30.854 xcodebuild[31452:71001753] Progress 0%: Upload failed.
Asset validation failed
Invalid entitlement for core nfc framework. The sdk version '16.1' and min OS version '13.6' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is disallowed'. (ID: redacted)
error: exportArchive: Asset validation failed. Invalid entitlement for core nfc framework. The sdk version '16.1' and min OS version '13.6' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is disallowed'. (ID: redacted).

Error Domain=ContentDelivery Code=90778 "error: Asset validation failed. Invalid entitlement for core nfc framework. The sdk version '16.1' and min OS version '13.6' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is disallowed'. (ID: redacted)." UserInfo={NSLocalizedDescription=error: Asset validation failed. Invalid entitlement for core nfc framework. The sdk version '16.1' and min OS version '13.6' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is disallowed'. (ID: redacted).} 
msmtamburro commented 1 year ago

Actually, looks like NDEF is not a real value? Can this be safely removed? https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_nfc_readersession_formats

WWSellers commented 1 year ago

Yes, it is safe to remove. We just removed 'NDEF' and an app and it was fine, including shipping it.