首页 > 解决方案 > iOS 模拟器上的通用链接

问题描述

我可以在模拟器上测试我的 ios 应用程序的通用链接的实现,而无需上传关联文件吗?我正在使用“xcrun simctl openurl”打开链接。

标签: iosswiftios-simulatorios-universal-links

解决方案


您可以使用 URL 方案进行检查,例如在 URL 方案中添加前缀。打开Safari添加您的前缀+最后添加“://”,然后检查“前缀://”您也可以在下面的链接中检查

https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app


推荐阅读