【问题标题】:nfc_manager isAvailable returns false iOSnfc_manager isAvailable 返回 false iOS
【发布时间】:2022-11-26 13:54:15
【问题描述】:

我遵循了本教程 https://medium.com/flutter-community/nfc-with-flutter-f8c3515cb0e0,但在调用 NfcManager.instance.isAvailable 时仍然出错,我做错了什么?

xcode 中的更新功能

https://developer.apple.com/account 更新个人资料

在 info.plst 中设置 NFCReaderUsageDescription

我还按照此处所述同步了我的配置文件Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices。有没有人知道我做错了什么。我正在 iPhone 13 mini 上试用。

【问题讨论】:

    标签: ios flutter dart


    【解决方案1】:

    我设法解决了这个问题…… 将此添加到您的 .entitlements 文件

    <key>com.apple.developer.nfc.readersession.formats</key>
        <array>
            <string>TAG</string>
        </array>
    

    并将正确的.entitlements 文件分配给您的code signing entitlements 文件(运行器 -> 构建设置)

    【讨论】:

      猜你喜欢
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      • 2019-06-02
      • 1970-01-01
      • 1970-01-01
      • 2019-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多