简体   繁体   English

iOS 13 和 Xcode 11 中的配置文件中缺少 NFC 标签协议

[英]Missing NFC tag protocol in profiles issue in iOS 13 and Xcode 11

Provisioning profiles showing error after adding NFC tag-specific data protocol to entitlements which is requirement of iOS 13 and Xcode 11 for using NFC in app.NFC 标签特定数据协议添加到权利后,配置文件显示错误,这是 iOS 13 和 Xcode 11 的要求,以便在应用程序中使用 NFC。

I have re-checked the profiles NFC is enabled for the bundle-id and provisioning profiles are also valid and includes NFC.我已经重新检查了为 bundle-id 启用了配置文件 NFC,并且配置文件也有效并且包括 NFC。

I need to upload a production build but because of this error I am not able to.我需要上传生产版本,但由于这个错误,我无法上传。 Is this iOS 13 or Xcode 11 bug?这是 iOS 13 或 Xcode 11 错误吗? What should I do for fixing this?我应该怎么做才能解决这个问题?

Preeti.普雷蒂。 I have the same issue here.我在这里有同样的问题。 I started with an app that uses NFC and is built with Xcode 10.2我从一个使用 NFC 并使用 Xcode 10.2 构建的应用程序开始

It is my aim to update this app to build using Xcode 11.1 However when I do so I get an error saying that have missing entitlements, I can solve this error by adding TAG to my entitlements file like this:我的目标是更新此应用程序以使用 Xcode 11.1 构建但是当我这样做时,我收到一个错误,提示缺少权利,我可以通过将 TAG 添加到我的权利文件中来解决此错误,如下所示:

<plist version="1.0">
<dict>
    <key>com.apple.developer.nfc.readersession.formats</key>
    <array>
        <string>NDEF</string>
        <string>TAG</string>
    </array>
</dict>
</plist>

However once you do this this is where I encounter the issue you describe, my build now complains that my provisioning profile "doesn't match the entitlements file value for the com.apple.developer.nfc.readersession.formats entitlement."但是,一旦您这样做,这就是我遇到您描述的问题的地方,我的构建现在抱怨我的配置文件“与 com.apple.developer.nfc.readersession.formats 权利的权利文件值不匹配。” Is this the same issue you are having?这与您遇到的问题相同吗?

This despite my profiles having previously contained the NFC tagging entitlement, and having worked fine on Xcode 10.2 Have these entitlements changed for Xcode 11 and how do we solve this and maintain backward compatibility?尽管我的配置文件之前包含 NFC 标记权利,并且在 Xcode 10.2 上运行良好,但这些权利是否已针对 Xcode 11 进行了更改,我们如何解决此问题并保持向后兼容性?

After a number of hit and trials, I was able to solve this issue.经过多次打击和试验,我能够解决这个问题。 Here are steps I followed:以下是我遵循的步骤:

1) In developer site, Open your app identifier, click edit, disable NFC and then re enable it. 1) 在开发者网站中,打开您的应用标识符,点击编辑,禁用 NFC,然后重新启用它。

2) Re-download the provisioning profiles and install them. 2) 重新下载配置文件并安装它们。

Reason behind it could be when we re-download the profiles it contained information about new NFC tag item which solves the problem.其背后的原因可能是当我们重新下载配置文件时,它包含有关解决问题的新 NFC 标签项目的信息。

Using >iOS13.0: This link gave the solution (ie eliminate the NDEF-entry in your entitlement)使用 >iOS13.0:此链接给出了解决方案(即消除您的权利中的 NDEF 条目)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM