小程序
小游戏
企业微信
微信支付
扫描小程序码分享
整理iOS开发者在接入新版本(1.8.6.1及以上版本)SDK经常遇到的几个问题及解决方案,方便开发者正确接入能力:
46 个评论
加粗
标红
插入代码
插入链接
插入图片
上传视频
我写的App 2020年接入了一个 universal link.配置好后,是可以分享的。
最近我们更换了域名,老的 universal link 对应的域名已经废弃。
然后我们就换了。
换完后发现竟然老的 universal link 还能用,换成新的竟然不行。
微信自检出现的结果是
WeChatSDK: wxlog:Successfully starting WeChat with the universal link.
新的universal link 在浏览器和备忘录都能打开指定的App。我不知道这是不是微信的bug???
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
你好,
我在ios 13.3.1 系统自检都是正常通过,跳转第一次是授权, 分享的时候不用授权,流程应该是正常的。
但是同样的代码运行到ios 14 的系统上在自检第五步出差了。
出错信息:
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
不太清楚是什么原因,请问有什么处理方法吗??
你好,请问我现在接入的sdk版本是1.8.7.1
ios13.3.1 自检通过,分享时也不会再次授权,分享正常,只是还是展示未授权应用,
但是在ios 14.2 和14.3 的 系统,自检时第五步就出错了,
Log如下:
现在的疑问就是为什么13的系统可以正常授权, 14 的就是自检不通过。
wxstatus - 0 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 1 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 2 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 3 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 4 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 5 - 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] 5 WXULCheckStepBackToCurrentApp 出错了 1. 后台配置了对应的universallinks 2. app对应升级sdk,且配置了applinks 3. 启动app后sdk注册了universalurl 分享时,会跳两次 用自检方法,第五步失败?需要睡一觉等等吗?😂 [WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult * _Nonnull result) { NSLog(@"wxstatus - %zd - %@", step, result); }];
完美解决u-link配置整套流程问题,跳转微信调不起好友列表,正在连接直接返回app等,一个星期苦难折磨的成功,有问题下面提,qq932181121
1111
如果 是通过友盟集成分享功能,那么注意下友盟版本。
把分享组件中依赖友盟的版本升级到非精简版本。
具体说明:
https://developer.umeng.com/docs/128606/detail/194829
【pod ‘UMCShare/Social/ReducedWeChat’】,说明您集成的就是微信精简版,请换成【pod ‘UMCShare/Social/WeChat’】
1.首先排查
原来apple-app-site-association文件是放到根目录下,但是现在要求放到
.well-known目录下
https:///.well-known/apple-app-site-association
并且域名不能重定向
You must host the file using https:// with a valid certificate and with no redirects.
https://developer.apple.com/documentation/safariservices/supporting_associated_domains
2.在ios13之前的设备可以通过universal link打开app,但是ios14不能打开了
原因是在ios13访问apple-app-site-association文件是通过设备去访问的,ios14之后是由apple的服务器区去访问。我们的问题是设备在本地网络下能访问到apple-app-site-association文件,但是苹果服务器访问走的是海外网络,ssl证书有问题导致不能访问到apple-app-site-association文件。修改这个问题之后就能顺利的打开app了。
univerasl link 配置完毕 微信支付是OK的 微信分享总是卡在正在连接然后跳回自己的app ,从回调来看走的时候url scheme。
iOS14 Universal Link不能跳转到app [解决办法]
http://blog.itblood.com/432.html
正在加载...
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
我写的App 2020年接入了一个 universal link.配置好后,是可以分享的。
最近我们更换了域名,老的 universal link 对应的域名已经废弃。
然后我们就换了。
换完后发现竟然老的 universal link 还能用,换成新的竟然不行。
微信自检出现的结果是
WeChatSDK: wxlog:Successfully starting WeChat with the universal link.
新的universal link 在浏览器和备忘录都能打开指定的App。我不知道这是不是微信的bug???
2021-06-23 11:32:52.370303+0800 Share[378:9868] registerApp,appid = 101742099
2021-06-23 11:32:52.396168+0800 Share[378:10057] [] nehelper sent invalid result code [1] for Wi-Fi information request
2021-06-23 11:32:52.397805+0800 Share[378:10057] [] nehelper sent invalid result code [1] for Wi-Fi information request
2021-06-23 11:32:52.443825+0800 Share[378:9868] registerApp,appid = 101742099
2021-06-23 11:32:52.471280+0800 Share[378:9868] unRegisterApp,appid = 101742099
2021-06-23 11:32:52.471319+0800 Share[378:10057] PBItemCollectionServicer connection disconnected.
2021-06-23 11:32:52.471421+0800 Share[378:9868] registerApp,appid = 101742099
2021-06-23 11:32:52.497467+0800 Share[378:9868] unRegisterApp,appid = 101742099
2021-06-23 11:32:52.497568+0800 Share[378:10057] PBItemCollectionServicer connection disconnected.
2021-06-23 11:32:52.497582+0800 Share[378:9868] WeChatSDK: step:0, result WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ]
2021-06-23 11:32:52.497788+0800 Share[378:9868] WeChatSDK: step:1, result WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ]
2021-06-23 11:32:52.500153+0800 Share[378:9868] WeChatSDK: step:2, result WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ]
2021-06-23 11:32:52.523034+0800 Share[378:9868] WeChatSDK: wxlog:set property list
2021-06-23 11:32:52.546762+0800 Share[378:9868] WeChatSDK: step:3, result WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ]
2021-06-23 11:32:52.551572+0800 Share[378:9868] xxx
2021-06-23 11:32:52.685197+0800 Share[378:9868] WeChatSDK: wxlog:launch app with ul only success
2021-06-23 11:32:52.685277+0800 Share[378:9868] WeChatSDK: step:4, result WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ]
2021-06-23 11:32:52.685308+0800 Share[378:9868] WeChatSDK: wxlog:Successfully starting WeChat with the universal link.
2021-06-23 11:32:52.724239+0800 Share[378:10054] [tcp] tcp_output [C1.1:3] flags=[R.] seq=313686052, ack=2475534244, win=65535 state=CLOSED rcv_nxt=2475534244, snd_una=313686021
2021-06-23 11:32:53.003239+0800 Share[378:10054] [tcp] tcp_output [C2.1:3] flags=[R.] seq=1554234237, ack=4040568070, win=65535 state=CLOSED rcv_nxt=4040568070, snd_una=1554234206
2021-06-23 11:32:53.336968+0800 Share[378:10056] [tcp] tcp_input [C3.1:3] flags=[R] seq=4106561850, ack=4280412141, win=0 state=LAST_ACK rcv_nxt=4106561850, snd_una=1610764773
2021-06-23 11:32:53.338999+0800 Share[378:10056] [tcp] tcp_input [C3.1:3] flags=[R] seq=4106561850, ack=4280412141, win=0 state=CLOSED rcv_nxt=4106561850, snd_una=1610764773
2021-06-23 11:32:53.636031+0800 Share[378:10059] PBItemCollectionServicer connection disconnected.
2021-06-23 11:32:54.471246+0800 Share[378:10057] [connection] nw_resolver_start_query_timer_block_invoke [C1] Query fired: did not receive all answers in time for ulogs.umeng.com:443
2021-06-23 11:32:54.803847+0800 Share[378:10057] [connection] nw_resolver_start_query_timer_block_invoke [C2] Query fired: did not receive all answers in time for ulogs.umeng.com:443
2021-06-23 11:32:55.112380+0800 Share[378:10054] [connection] nw_resolver_start_query_timer_block_invoke [C3] Query fired: did not receive all answers in time for ulogs.umeng.com:443
2021-06-23 11:32:56.553183+0800 Share[378:10057] [tcp] tcp_input [C4.1:3] flags=[R] seq=675377524, ack=2427794139, win=0 state=LAST_ACK rcv_nxt=675377524, snd_una=3806454886
2021-06-23 11:32:56.553652+0800 Share[378:10057] [tcp] tcp_input [C4.1:3] flags=[R] seq=675377524, ack=2427794139, win=0 state=CLOSED rcv_nxt=675377524, snd_una=3806454886
2021-06-23 11:32:58.355582+0800 Share[378:10054] [connection] nw_resolver_start_query_timer_block_invoke [C4] Query fired: did not receive all answers in time for ulogs.umeng.com:443
2021-06-23 11:33:02.599711+0800 Share[378:9868] WeChatSDK: wxlog:send req[<SendMessageToWXReq: 0x282d796c0>], appID:wx26563e31aaa10a1c, universalLink:https://ciyo.yukicomic.com/, sdkVersion:1.8.7.1
2021-06-23 11:33:02.608387+0800 Share[378:9868] WeChatSDK: wxlog:set property list
2021-06-23 11:33:02.719093+0800 Share[378:9868] WeChatSDK: wxlog:launch app with ul only success
2021-06-23 11:33:02.719159+0800 Share[378:9868] WeChatSDK: wxlog:launch app with universal link, ret:1
2021-06-23 11:33:02.719198+0800 Share[378:9868] WeChatSDK: wxlog:req:<SendMessageToWXReq: 0x282d796c0>, cid:6eb96f52dfe4f313b3444e5c5740831cf945c54d
2021-06-23 11:33:02.788181+0800 Share[378:10057] [tcp] tcp_input [C6.1:3] flags=[R] seq=4003589662, ack=4081255459, win=0 state=LAST_ACK rcv_nxt=4003589662, snd_una=807036977
2021-06-23 11:33:02.789485+0800 Share[378:10057] [tcp] tcp_input [C6.1:3] flags=[R] seq=4003589662, ack=4081255459, win=0 state=CLOSED rcv_nxt=4003589662, snd_una=807036977
2021-06-23 11:33:02.850509+0800 Share[378:10213] PBItemCollectionServicer connection disconnected.
2021-06-23 11:33:02.965323+0800 Share[378:10056] [tcp] tcp_input [C7.1:3] flags=[R] seq=2246068377, ack=663828430, win=0 state=LAST_ACK rcv_nxt=2246068377, snd_una=1083425285
2021-06-23 11:33:02.973001+0800 Share[378:10054] [tcp] tcp_input [C7.1:3] flags=[R] seq=2246068377, ack=663828430, win=0 state=CLOSED rcv_nxt=2246068377, snd_una=1083425285
2021-06-23 11:33:04.679510+0800 Share[378:10054] [connection] nw_resolver_start_query_timer_block_invoke [C5] Query fired: did not receive all answers in time for log.umsns.com:443
2021-06-23 11:33:04.680046+0800 Share[378:10054] [connection] nw_resolver_start_query_timer_block_invoke [C6] Query fired: did not receive all answers in time for ulogs.umeng.com:443
2021-06-23 11:33:04.845660+0800 Share[378:10054] [connection] nw_resolver_start_query_timer_block_invoke [C7] Query fired: did not receive all answers in time for ulogs.umeng.com:443
error in connection_block_invoke_2: Connection interrupted
你好,
我在ios 13.3.1 系统自检都是正常通过,跳转第一次是授权, 分享的时候不用授权,流程应该是正常的。
但是同样的代码运行到ios 14 的系统上在自检第五步出差了。
出错信息:
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
不太清楚是什么原因,请问有什么处理方法吗??
你好,请问我现在接入的sdk版本是1.8.7.1
ios13.3.1 自检通过,分享时也不会再次授权,分享正常,只是还是展示未授权应用,
但是在ios 14.2 和14.3 的 系统,自检时第五步就出错了,
Log如下:
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
现在的疑问就是为什么13的系统可以正常授权, 14 的就是自检不通过。
wxstatus - 0 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 1 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 2 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 3 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 4 - WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ] wxstatus - 5 - 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] 5 WXULCheckStepBackToCurrentApp 出错了 1. 后台配置了对应的universallinks 2. app对应升级sdk,且配置了applinks 3. 启动app后sdk注册了universalurl 分享时,会跳两次 用自检方法,第五步失败?需要睡一觉等等吗?😂 [WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult * _Nonnull result) { NSLog(@"wxstatus - %zd - %@", step, result); }];
完美解决u-link配置整套流程问题,跳转微信调不起好友列表,正在连接直接返回app等,一个星期苦难折磨的成功,有问题下面提,qq932181121
1111
如果 是通过友盟集成分享功能,那么注意下友盟版本。
把分享组件中依赖友盟的版本升级到非精简版本。
具体说明:
https://developer.umeng.com/docs/128606/detail/194829
【pod ‘UMCShare/Social/ReducedWeChat’】,说明您集成的就是微信精简版,请换成【pod ‘UMCShare/Social/WeChat’】
1.首先排查
原来apple-app-site-association文件是放到根目录下,但是现在要求放到
.well-known目录下
https:///.well-known/apple-app-site-association
并且域名不能重定向
You must host the file using https:// with a valid certificate and with no redirects.
https://developer.apple.com/documentation/safariservices/supporting_associated_domains
2.在ios13之前的设备可以通过universal link打开app,但是ios14不能打开了
原因是在ios13访问apple-app-site-association文件是通过设备去访问的,ios14之后是由apple的服务器区去访问。我们的问题是设备在本地网络下能访问到apple-app-site-association文件,但是苹果服务器访问走的是海外网络,ssl证书有问题导致不能访问到apple-app-site-association文件。修改这个问题之后就能顺利的打开app了。
univerasl link 配置完毕 微信支付是OK的 微信分享总是卡在正在连接然后跳回自己的app ,从回调来看走的时候url scheme。
iOS14 Universal Link不能跳转到app [解决办法]
http://blog.itblood.com/432.html