watchOS 5 allows to open a web page from Mail or Messages, but these apps are not present in the Simulator.
I tried using xcrun simctl openurl <device> <URL>
, which works with an iPhone simulator, but with a Watch returns an error:
An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
The operation couldn't be completed. (OSStatus error -10814.)
This error means “No application in the Launch Services database matches the input criteria.”
Is there a way to open a web page in an Apple Watch simulator?
根据WebKit的Wenson Hsieh的说法,这是不可能的 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.