iOS通用链接无法通过TestFlight使用 [英] iOS Universal Links not working via TestFlight

查看:290
本文介绍了iOS通用链接无法通过TestFlight使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iOS的新手,并设法按照

I'm new to iOS and managed to implement the iOS Universal Links for an app following this.

我已经创建并上传了 apple-app-site-association ,并配置/准备了该应用程序以处理通用链接.

I have created and uploaded the apple-app-site-association and configured/prepared the app to handle universal links.

一切正常,当我通过xCode将应用程序构建到真实设备中时,我可以成功对其进行测试.但是,通过TestFlight安装应用程序时,通用链接不起作用.

It all works well and I can test it successfully when I build the app through xCode into a real device. However the universal links do not work when installing the app via TestFlight.

通过xCode安装应用程序时,我可以在Web服务器中看到对apple-app-site-association文件的HTTP请求.但是,当通过TestFlight安装它时,似乎并没有尝试获取关联文件.

When installing the app via xCode I can see the HTTP request to the apple-app-site-association file in my web server. But when installing it via TestFlight doesn't seem to try to fetch the association file.

有人知道这是预期的吗,还是在TestFlight上进行部署时如何使通用链接正常工作?

Does anyone knows if this is expected or how can get universal links working when deploying on TestFlight?

推荐答案

确保您的关联域都在两个授权文件中:"Debug"和"Release". 在我的情况下,所有域都列在Entitlement-Debug.plist文件中,但Entitlement-Release.plist为空.

Make sure your Associated Domains are in both entitlement files: "Debug" and "Release". In my case all domains were listed in Entitlement-Debug.plist file but the Entitlement-Release.plist was empty.

将它们手动添加到发布"文件后-通过TestFlight安装的应用开始使用Universal Links.

After adding them manually to the 'Release' file - app installed via TestFlight started working with Universal Links.

这篇关于iOS通用链接无法通过TestFlight使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆