xcode 配置文件中不包含iCloud文档NSUbiquitousContainers权利

cyvaqqii  于 2023-03-31  发布在  其他
关注(0)|答案(1)|浏览(215)

我无法启用iCloud文档。我使用iCloud键值存储和CloudKit没有问题,但当我尝试在plist中添加以下配置时:

<key>NSUbiquitousContainers</key>
    <dict>
        <key>iCloud.App</key>
        <dict>
            <key>NSUbiquitousContainerIsDocumentScopePublic</key>
            <true/>
            <key>NSUbiquitousContainerName</key>
            <string>appname</string>
            <key>NSUbiquitousContainerSupportedFolderLevels</key>
            <string>Any</string>
        </dict>
    </dict>

出现以下错误:

Provisioning profile "iOS Team Provisioning Profile: com.teamname.appname" doesn't include the NSUbiquitousContainers entitlement

此外,它说:

Automatic signing failed. Xcode failed to provision this target. Please file a bug report at <https://feedbackassistant.apple.com> and include the Update Signing report from the Report navigator.

编辑:我也尝试使用手动签名,然后自动签名失败错误消失,但权利问题仍然存在。

8fq7wneg

8fq7wneg1#

这段代码应该放在info.plist而不是授权文件中。info.plist在新的SwiftUI项目中被移动到TARGET设置中。

相关问题