iOS fail to load Keychain status:-25300, keyData null:1
接入新的微信SDK可能遇到这个报错//在register之前打开log, 后续可以根据log排查问题[WXApi startLogByLevel:WXLogLevelDetail logBlock:^(NSString *log) {NSLog(@"WeChatSDK: %@", log);}];//注册微信[WXApi registerApp:WXAppID universalLink:Wech
·
接入新的微信SDK可能遇到这个报错
//在register之前打开log, 后续可以根据log排查问题
[WXApi startLogByLevel:WXLogLevelDetail logBlock:^(NSString *log) {
NSLog(@"WeChatSDK: %@", log);
}];
//注册微信
[WXApi registerApp:WXAppID universalLink:Wechat_ULink];
//调用自检函数
[WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult* result) {
NSLog(@"WeChatSDK%@, %u, %@, %@", @(step), result.success, result.errorInfo, result.suggestion);
}];
因为我已经设置了Universal links,检查代码发现漏写了,补上就好
- (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(nonnull void (^) (NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler{
return [WXApi handleOpenUniversalLink:userActivity
delegate:self];
}
END.
更多推荐
已为社区贡献1条内容
所有评论(0)