1,我们的正式环境版本
WechatSDK:1.8.7.1(手动下载)
微信版本号:8.0.39
问题现象:在浏览器打开universal link,无法唤起我们的APP(以前是可以的)。
wx日志:
wxlog:set property list
wxlog:launch app with ul only success
wxlog:Successfully starting WeChat with the universal link.
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]
添加自检:
0, 1, check passed,
1, 1, check passed,
2, 1, check passed,
3, 1, check passed,
4, 1, check passed,
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
2,我们正在开发的版本
WechatOpenSDK: 2.0.2(cocoapods下载)
微信版本号:8.0.39
问题现象:在浏览器打开universal link,无法唤起我们的APP(以前是可以的)。
wx日志:
wxlog:using sdk:pod--
wxlog:Error:register fail, WeChat scheme(weixinULAPI) is not be added to LSApplicationQueriesSchemes in plist!
wxlog:set property list
wxlog:launch app with ul only success
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]
添加查询白名单:
NSArray *queriesSchemes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"LSApplicationQueriesSchemes"];
NSLog(@"queriesSchemes = %@", queriesSchemes);
打印:
queriesSchemes = (
wechat,
weixin,
weixinULAPI
)
添加自检:
0, 1, check passed,
1, 1, check passed,
2, 1, check passed,
3, 1, check passed,
4, 1, check passed,
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-07-05 16:20:46.434914+0800 立码见真[5598:1755389] [Line 258] -[AppDelegate configLibs]_block_invoke 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]
然后我们检查了APP内的配置,检查了配置在服务器域名下的apple-app-site-association文件(文件是放在.well-known文件夹下的),都没问题,可是就是无法唤起我们的APP。急切需要帮助,我的微信:yin921221,如果需要我提供其他信息的话。
我这也是这种情况,之前用得好好的,突然客户就是分享不了了;这期间服务器更改过服务器的数据,但是没动apple-app-site-association的位置,无语惨了
看到其他帖子下需要提供appid,问题发生的时间,就想再测试一下。额...结果莫名奇妙的好了。
回想今天做了什么,让运维同事把apple-app-site-association也复制了一份,放在了根目录下。到底是要放在根目录还是.well-known下呢?希望知道的童鞋在下面评论。然后呢用url分别访问下载了这个文件,下载成功。然后用同事手机,杀掉微信进程,不停的启动我们自己的APP(重启总会出现先调起微信,显示正在连接...,可能是开启了自检函数的原因,去掉之后不会再调起微信了)。over!