美文网首页
iOS Universal Link配置失败问题汇总

iOS Universal Link配置失败问题汇总

作者: 秋燕归 | 来源:发表于2023-03-06 09:11 被阅读0次

前言

相信绝大数人找到这篇文章都是因为对接微信SDK的时候出现正在链接,或自检log显示如下:

2023-03-06 21:05:58.444060+0800 xxxxx[423:6001] 0, 1, check passed,
2023-03-06 21:05:58.444437+0800 xxxxx[423:6001] 1, 1, check passed,
2023-03-06 21:05:58.450565+0800 xxxxx[423:6001] 2, 1, check passed,
2023-03-06 21:05:58.450933+0800 xxxxx[423:6001] WeChatSDK: wxlog:set property list
2023-03-06 21:05:58.453513+0800 xxxxx[423:6001] 3, 1, check passed
2023-03-06 21:06:17.267253+0800 xxxxx[423:6001] WeChatSDK: wxlog:launch app with ul only success
2023-03-06 21:06:17.267445+0800 xxxxx[423:6001] 4, 1, check passed,
2023-03-06 21:06:17.267573+0800 xxxxx[423:6001] WeChatSDK: wxlog:Successfully starting WeChat with the universal link.
2023-03-06 21:06:18.380295+0800 xxxxx[423:6001] 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409
2023-03-06 21:06:18.380476+0800 xxxxx[423:6001] WeChatSDK: wxlog:Error:WXCheckULStepResult[success: 0, errorInfo: Universal Link check failed. The application is launched by WeChat via scheme, suggestion: Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409]

且确定完成了以下两个步骤:
1.对照微信官方文档完成了对接
2.开放平台中的Universal Link也设置的正确的

apple-app-site-association配置问题

1.apple-app-site-association文件没有.json的后缀名,文件里面的内容是一个json格式的文本

apple-app-site-association文件没有.json的后缀名
apple-app-site-association文件没有.json的后缀名
apple-app-site-association文件没有.json的后缀名

2.Universal Link不能有重定向

比如你请求的是https://www.xxxx.com,结果返回了301的状态码,使得url变成了https://app.xxxx.com

3.每次改了服务器上的apple-app-site-association文件,都需要删除App重新安装,因为apple-app-site-association只在第一次安装下才会去下载

4.SSL证书

4.1Universal Link只支持https,不支持http

4.2不是所有的SSL证书都支持(好多人完成对接但是就是不成功)

iOS信任的证书:[https://support.apple.com/en-au/HT209143]
当前信任的证书:[https://support.apple.com/en-au/HT213080]

部分受信任的证书

4.3如何判断自己服务器的ssl证书是否受信任

4.3.1访问你的Universal Link,并点击那个小锁,如下图所示:
image.png
4.3.2点击连接是安全的,如下图所示:
image.png
4.3.3点击证书有效,如下图所示:
image.png
4.3.4查看证书信息,看你的证书是否在Apple信任列表里面
image.png image.png

如果不在,你再怎么折腾也没用
如果不在,你再怎么折腾也没用
如果不在,你再怎么折腾也没用

唯一解决方法:让服务器换证书

相关文章

网友评论

      本文标题:iOS Universal Link配置失败问题汇总

      本文链接:https://www.haomeiwen.com/subject/qjfmldtx.html