官方文档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