【发布时间】:2020-08-20 08:00:26
【问题描述】:
以下方案可以在模拟器上支持universalLink。
我有一个支持 UniversalLink 的应用。 用户单击网站中支持的链接,将导航到应用程序中的功能。
但它无法在 iOS 14 beta 4 上运行。它没有打开应用程序,而是打开了一个网页 instread。
经过研究,我可以从这里的文档中看到 https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains
需要更新 Service.entitlements 以支持 iOS 13 和 iOS 14
<Key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:hosturl</string>
<string>applinks:hosturl?mode=developer</string>
</array>
它在模拟器上运行良好。 但我无法让它在设备上运行。 任何人都可以提供帮助。
【问题讨论】:
标签: ios swift ios-universal-links ios14