收藏
评论

微信开放平台App iOS端接入新版本SDK 常见问题自查指引官方

整理iOS开发者在接入新版本(1.8.6.1及以上版本)SDK经常遇到的几个问题及解决方案,方便开发者正确接入能力:

  1. App更新微信1.8.6.1版本SDK后出现“正在连接”的提示?
  2. Universal Link校验不通过/接入新SDK,跳到微信后再回跳App,流程就中止?
627358浏览
最后一次编辑于  2020-03-05
知识库内容非实时更新,可能已过期、失效或不适用于当前情形,请谨慎参考
收藏
反馈

46 个评论

  • 陶正亮
    陶正亮
    2021-06-23

    我写的App 2020年接入了一个 universal link.配置好后,是可以分享的。

    最近我们更换了域名,老的 universal link  对应的域名已经废弃。

    然后我们就换了。

    换完后发现竟然老的 universal link 还能用,换成新的竟然不行。

    微信自检出现的结果是

    WeChatSDK: wxlog:Successfully starting WeChat with the universal link.

    新的universal link 在浏览器和备忘录都能打开指定的App。我不知道这是不是微信的bug???


    2021-06-23
    赞同
    回复 1
    • 陶正亮
      陶正亮
      2021-06-23
      这里是我的日志:
      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
      2021-06-23
      回复
  • C.z
    C.z
    2021-06-01

    你好,

    我在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

    不太清楚是什么原因,请问有什么处理方法吗??

    2021-06-01
    赞同
    回复
  • C.z
    C.z
    2021-06-01

    你好,请问我现在接入的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 的就是自检不通过。

    2021-06-01
    赞同
    回复
  • littleplayer
    littleplayer
    2021-04-15
    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);
        }];
    
    
    2021-04-15
    赞同
    回复
  • ꫛꫀꪝএ᭄
    ꫛꫀꪝএ᭄
    2021-03-20

    完美解决u-link配置整套流程问题,跳转微信调不起好友列表,正在连接直接返回app等,一个星期苦难折磨的成功,有问题下面提,qq932181121

    2021-03-20
    赞同
    回复 2
    • 赵周辰辰
      赵周辰辰
      2021-03-22
      你好,解决了吗?
      2021-03-22
      回复
    • DonVincent
      DonVincent
      2021-03-23
      你这个qq也加不上啊
      2021-03-23
      回复
  • ꫛꫀꪝএ᭄
    ꫛꫀꪝএ᭄
    2021-03-20

    1111

    2021-03-20
    赞同
    回复
  • 景铭
    景铭
    2021-02-19

    如果 是通过友盟集成分享功能,那么注意下友盟版本。


    把分享组件中依赖友盟的版本升级到非精简版本。

    具体说明:

    https://developer.umeng.com/docs/128606/detail/194829

    【pod ‘UMCShare/Social/ReducedWeChat’】,说明您集成的就是微信精简版,请换成【pod ‘UMCShare/Social/WeChat’】


    2021-02-19
    赞同
    回复
  • Lv1.刘克付
    Lv1.刘克付
    2021-01-17

    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了。


    2021-01-17
    赞同
    回复
  • 光晕
    光晕
    2020-12-08

    univerasl link 配置完毕 微信支付是OK的 微信分享总是卡在正在连接然后跳回自己的app ,从回调来看走的时候url scheme。

    2020-12-08
    赞同
    回复 1
    • 黄嘉颖
      黄嘉颖
      2021-01-26
      同问
      2021-01-26
      回复
  • 一明
    一明
    2020-11-20

    iOS14 Universal Link不能跳转到app [解决办法]

    http://blog.itblood.com/432.html

    2020-11-20
    赞同
    回复 1
    • 立竿见影
      立竿见影
      2020-12-01
      这问题怎么解决的,上面没提到
      2020-12-01
      回复

正在加载...

登录 后发表内容