xamarin 当我将关联域密钥添加到Entitlement.plist中时,plist中出现解析错误

dfuffjeb  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(102)

我正在使用xamarin构建一个应用程序,我需要将我的域添加到Entitlement.plist中以允许我拥有深层链接,但是当将应用程序交付到苹果的应用程序商店时,交付失败,并显示类似“plist中的解析错误:.”
这是我的权利。plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>aps-environment</key>
    <string>development</string>
    
    <!--facebook needed-->
    <key>keychain-access-groups</key>
    <array>
        <string>X0XX000XXX.com.Bundle</string>
    </array>
    <!--end facebook needed-->

    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:domain.com</string>
        <string>applinks:www.domain.com</string>
    </array>
</dict>
</plist>

如果我删除了关键字com.apple.developer.associated-domains和它的数组,一切都会恢复正常。我做错了什么?

uz75evzq

uz75evzq1#

This probably was due to no provisioning license found. Created apple developer account and setup app id and provisioning profile. In Xcode you had to download the profile too. Then you have to match the bundle identifier to the app id and assigned the identity too.
More information you can refer to this: https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/provisioning/entitlements?tabs=windows

相关问题