Check that your apple-app-site-association file is served the way iOS expects. Most broken Universal Links come down to something on this page, and almost none of it is visible in a browser.
Check every host you claim, including the www and non-www variants. They are separate as far as iOS is concerned.
Open the file in a browser and it loads. That proves very little, because a browser follows redirects, accepts any content type and renders an error page as happily as a document. iOS does none of those things. It makes one request, accepts one answer, and gives up quietly if anything is off.
The most common fault by far is a redirect. A host that canonicalises example.com to www.example.com redirects the association file too, and Apple will not follow it. The file is reachable, the JSON is perfect, and links still open Safari. Nothing in the browser tells you, because the browser follows the hop and shows you the file at the end of it.
The second is a bot protection or firewall rule that returns an HTML challenge page with a 200 status. As far as any status check is concerned the file exists. As far as iOS is concerned it is not JSON and there is nothing to parse.
On install, iOS asks Apple's CDN for your association file rather than fetching it from you directly. The CDN caches it, so a fix can take hours to reach devices even once your server is correct. This is why a change that looks instant on your end does not show up on a test device.
The file is read at install and at update, not on every launch. A device that installed the app while the file was broken keeps the broken result until the app is reinstalled or updated. When testing a fix, delete the app and install it again rather than relaunching it.
Re-run this check against every host you list in your Associated Domains entitlement, not just the canonical one. Each host serves its own file and each is verified separately.
Then reinstall on a real device. The simulator does not perform the same verification, so a Universal Link that works in the simulator tells you nothing about a phone.
Tolinku hosts both association files for you, keeps them valid as your routes change, and tells you when a link stops resolving.