SwiftUI - Open Deeplink url from your terminal

simrandotdev

Simran

Posted on March 30, 2023

SwiftUI - Open Deeplink url from your terminal

Original Post

For the longest time when I had to test deeplinks, I would send myself an email with the link and open gmail in the iPhone simulator. But thanks for Stewart Lynch and his Navigation stack video I learnt a way to open deeplink urls from the terminal in my simulator.

xcrun simctl openurl booted <URL Scheme>://PathComponent1/PathComponent2
Enter fullscreen mode Exit fullscreen mode

Your URL Scheme is defined under Targets > Info > URL Types and PathComponent can be anything that we want to read in our app to define where we want to go or what data is being sent from the Deep Link

💖 💪 🙅 🚩
simrandotdev
Simran

Posted on March 30, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related