Tuesday 3 September 2024

Open deeplink in iOS Simulator

  • Open your project in Xcode.
  • Select your project icon from the left menu Project Navigator.
  • Select the app under Targets.
  • Select Info from the top menu.
  • Expand the URL Types section.
  • Click on the Add option (+) to add a URL type.
  • Fill in the following information to create a URL scheme:
  • Identifier$(PRODUCT_BUNDLE_IDENTIFIER)
  • URL Schemes: Your custom URL scheme ( com.myApp:). This must be unique. Avoid using protected schemes such as httphttps, or mailto.
  • Open terminal and run the app.
  • Then on the booted device run the following command replacing your url scheme(under Xcode project info list) and deeplink path. 

xcrun simctl openurl booted “com.myApp://AnyDeeplink”

No comments:

Post a Comment