[英]nfc_manager isAvailable returns false iOS
我按照本教程https://medium.com/flutter-community/nfc-with-flutter-f8c3515cb0e0調用NfcManager.instance.isAvailable
時仍然出錯,我做錯了什么?
在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.