- What I want?
I expect to use xcrun devicectl device process launch --device <uuid> <bundle-identifier> --payload-url <URL>
to launch my app and pass the specified URL as I usually do in iPhone.
- What I do?
Let's say the app A which I'm developing.
I try to use UIApplication.open(:options:completionHandler:)
in another app to open the app A with registered schema. And whether app A is cold launch or background resumption, app A can go foreground with receiving URL.
If I use xcrun devicectl
as above described, app A can still be opened. However, app A can't receive URL which I pass through --payload-url
option. That's different from in iOS.
BTW: I as well try YouTube with UIApplication.open
and xcrun devicectl
, the former way work, the latter way not work.