簡體   English   中英

nfc_manager isAvailable 返回 false iOS

[英]nfc_manager isAvailable returns false iOS

我按照本教程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 刷新配置文件設備 有沒有人知道我做錯了什么。 我正在 iPhone 13 mini 上試用。

我設法解決了這個問題……將其添加到您的.entitlements 文件中

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

並將正確的.entitlements文件分配給您的code signing entitlements文件(runner -> Build Settings)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM