2

我正在使用微信 iOS SDK 实现微信登录功能。我有我有微信开发者ID(appID)。我已经在 iOS 应用程序中完成了以下编码

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [WXApi registerApp:@"APP_ID"];


    return YES;
}

当我像这样调用 senAuthReq

-(void)sendAuthRequest{
    SendAuthReq* req = [[SendAuthReq alloc ] init] ;
    req.scope = @"snsapi_userinfo" ;
    req.state = @"123" ;

    [WXApi sendReq:req];
}

微信iOS应用程序给我错误: 无法登录微信。系统错误。错误代码:10026

4

1 回答 1

1

Check your APP bundleID on the WeChat at Wechat'OpenPlatForm, keep it same with yours

于 2019-04-03T03:10:29.147 回答