1.9.6版本的SDK,注册的时候出现 WeChatSDK: wxlog:Error:register fail, WeChat scheme(weixinULAPI) is not be added to LSApplicationQueriesSchemes in plist!的问题,可通过打印,weixinULAPI是存在的,请问这是怎么问题,全网都搜不到一个解决方案?有人遇到过处理了吗?
源码:
[WXApi startLogByLevel:WXLogLevelDetail logBlock:^(NSString *log) {
NSLog(@"WeChatSDK: %@", log);
}];
NSArray *queriesSchemes = [[NSBundle mainBundle] objectForInfoDictionaryKey: @"LSApplicationQueriesSchemes"];
NSLog(@"queriesSchemes:%@",queriesSchemes);
[WXApi registerApp:AppID universalLink:universaURL];
打印信息:
2022-08-29 11:29:57.089002+0800 Independent[12678:1854151] queriesSchemes:( weixin, wechat, weixinULAPI ) 2022-08-29 11:29:57.089358+0800 Independent[12678:1854151] WeChatSDK: wxlog:Error:register fail, WeChat scheme(weixinULAPI) is not be added to LSApplicationQueriesSchemes in plist!
破案了:
1、不要同时调用自检函数和sendReq
2、缺的是weixinURLParamsAPI而不是weixinULAPI