官方文檔https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
是扯淡的, 跟着走行不通。
下面這個步驟是靠譜的,
https://gist.github.com/anhar/6d50c023f442fb2437e1#sign-the-apple-app-association-file-using-openssl
其實關鍵就是apple-app-site-association要不要sign,實踐證明是需要的, 否則會報錯誤:
Rejecting URL 'https://domain.com/apple-app-site-association' for auth method 'NSURLAuthenticationMethodServerTrust': -6754/0xFFFFE59E kAuthenticationErr