How to Add an Associated Domain in Xcode
To enable your iOS app to support Universal Links or other domain-based features, you need to configure associated domains within your Xcode project. Follow these steps to set it up:
- Launch Xcode and open your application project.
- From the Project Navigator, click on your project’s name to access its configuration.
- Choose your app target under the Targets section.
- Go to the Signing & Capabilities tab.
- Click + Capability and select Associated Domains from the list.
- Once added, click the + button under Associated Domains.
- Insert your domain in the format:
applinks:{YOUR_SUBDOMAIN}.sddl.me
Tip: Make sure to add subdomains from your SDDL dashboard.
Verifying Your Setup
- Build and install your app on a physical iOS device.
- Test Universal Link behavior by opening a valid link in Safari that corresponds with your configured domain.