Expo iOS NFC 授权错误,因为不允许 NDEF

问题描述 投票:0回答:1

尝试通过 EAS Submit 提交我的 Expo iOS 应用程序时,出现以下错误:

 Asset validation failed Invalid entitlement for core nfc framework. The sdk version '17.4' and min OS version '13.4' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is disallowed'.

错误永远不会改变

我尝试将以下内容单独或一起添加到我的

app.json
中,但无济于事:

{
  "expo": {
    "ios": {
      "entitlements": {
        "com.apple.developer.nfc.readersession.formats": ["TAG"]
      },
      "infoPlist": {
        "MinimumOSVersion": "14.0"
      }
    }
  }
}

我还意识到MinimumOSVersion似乎并没有改变错误消息。

ios expo nfc
1个回答
0
投票

看起来你需要在配置插件选项中

includeNdefEntitlement: false

https://github.com/revtel/react-native-nfc-manager/blob/9301ab3f8d13115614d11ea6f1f9da22697835f1/app.plugin.js#L46

© www.soinside.com 2019 - 2024. All rights reserved.