由于可以通过命令行在 ABD Shell 的帮助下在 Android 真实设备上打开 .apk 应用程序的深层链接,我们如何为 iOS 执行相同的操作?
条件:iOS设备已连接到MAC,应用程序已安装,并且我有当前应用程序的深层链接列表。
在玩了一下 devicectl 之后,我发现了一种几乎可以按需要工作的方法!
我发现可以在设备上启动一个带有 url 的应用程序,这给了我们两个选项:
xcrun devicectl device process launch --device xxx --terminate-existing --payload-url https://example.com com.apple.mobilesafari
xcrun devicectl device process launch --device xxx --terminate-existing --payload-url https://example.com your.app.bundle.id