You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve documentation for Associated Domains setup (#46)
I found the original guide a bit hard to follow and accidentally used
the wrong identifiers in the file, which Apple cached. I'm hoping this
rework makes it a bit clearer
XCode > Your app (the root-level object in Navigator) > Targets > (pick one) > General, look for Bundle Identifier
75
85
76
-
The App ID is the combination of the Team ID (typically 10 characters) and the Bundle ID (typically configured in-app, frequently in reverse-DNS format): `TeamID.BundleID`
77
86
78
-
This will result in something like `A5B4C3D2E1.tld.yourdomain.YourAppName`
79
87
80
-
#### Optional: enable SWC Developer Mode
88
+
### Publish the file
89
+
90
+
This file must be served at `https://yourdomain.tld/.well-known/apple-app-site-association`.
91
+
92
+
`curl https://yourdomain.tld/.well-known/apple-app-site-association` to test it.
93
+
94
+
It should be served with an `application/json``mime-type`, but it's not strictly required.
95
+
Be sure it's not blocked by robots.txt or firewall rules.
96
+
97
+
98
+
## Optional: enable SWC Developer Mode
81
99
82
100
In production applications, Apple caches the Associated Domains file for about a day.
83
-
For local development, you can bypass this cache:
101
+
For local development of a macOS app, you can bypass this cache:
84
102
85
103
1)_Add_ a second entry to the Associated Domains section:
0 commit comments