Last active
October 14, 2020 11:51
-
-
Save MMnasrabadi/645b2e1c076e28a2417eb0829959bda9 to your computer and use it in GitHub Desktop.
To open a custom URL scheme (or any website) in a simulator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun is a tool to run any tool inside Xcode from the command line. The tool for this job is simctl, which help you manage simulators. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xcrun is a tool to run any tool inside Xcode from the command line. The tool for this job is simctl, which help you manage simulators.
To open a custom URL scheme (or any website) in a simulator.
xcrun simctl openurl booted <url>
Example
xcrun simctl openurl booted acme://test
This will simulate what we used to do in Safari, but a lot easier and faster.