xcode Flutter iOS应用程序中最终IPA中的调试应用程序链接权限

bxgwgixi  于 2023-04-22  发布在  Flutter
关注(0)|答案(1)|浏览(178)

我有一个Flutter应用程序和以下文件ios/Runner/Runner.entitlements

<?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>
    <key>com.apple.developer.applesignin</key>
    <array>
        <string>Default</string>
    </array>
    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:nutmegapp.page.link</string>
        <string>applinks:web.nutmegapp.com</string>
    </array>
</dict>
</plist>

但由于某些原因,applink仍然不起作用。
我读到IPA中填充了Entitlements,我可以通过检查Payload/Runner.app/embedded.mobileprovision文件的内容来调试它们
在这个文件中,我看到了例如aps-environment和其他设置,但我没有看到applinks域。
我在哪里可以验证这些权利是否正确地传递给了最终工件?

h9vpoimq

h9vpoimq1#

在xcode中打开你的项目:

之后,检查签名和兼容性选项卡:

如果你有“debug”和“release”和“profile”选项卡,你应该在每个选项卡上分别定义“applinks”(你可能有“debug”和“release”,这是可以的)。最后,你应该在你的项目中有3个权利:

Runner.entitlements
RunnerRelease.entitlements
RunnerProfile.entitlements
使用此链接检查并验证服务器中的AASA验证:https://branch.io/resources/aasa-validator/#resultsbox
检查有效的AASA文件后,删除设备中的应用程序并重新安装,然后再次检查
在开发者模式下,你应该将这个查询字符串添加到applinks结尾:?mode=开发人员
最后,这个链接可以帮助你:https://abhimuralidharan.medium.com/universal-links-in-ios-79c4ee038272

相关问题