• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ios - 在 quickblox 中注册新用户时应用程序崩溃

[复制链接]
菜鸟教程小白 发表于 2022-12-13 04:09:35 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我正在开发一个聊天应用程序,并且我添加了用于聊天的 Quickblox 框架,但是当我尝试使用新用户应用程序注册时崩溃并出现以下错误:

2014-12-22 14:14:59.369 closeChat[14705:2255670] 
  +[QBRequest createSessionWithSuccessBlock:errorBlock:]: 
  unrecognized selector sent to class 0x223774
2014-12-22 14:14:59.373 closeChat[14705:2255670] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 
'+[QBRequest createSessionWithSuccessBlock:errorBlock:]: unrecognized selector sent to class 0x223774'
*** First throw call stack:
(0x29e5949f 0x3764fc8b 0x29e5e7d5 0x29e5c7d7 0x29d8e058 
 0xbfbd5 0x2d34c9fb 0x2d34c9a1 0x2d337613 0x2d34c40d 
 0x2d3111ad 0x2d3460c1 0x2d34599d 0x2d31c15d 0x2d58fab9 
 0x2d31abb9 0x29e1fd57 0x29e1f167 0x29e1d7cd 0x29d6b3c1 
 0x29d6b1d3 0x311690a9 0x2d37afa1 0xd463d 0x37bcfaaf)
libc++abi.dylib: terminating with uncaught exception of type NSException

我使用了以下代码...

[QBRequest createSessionWithSuccessBlock:^(QBResponse *response, QBASession *session)
    {
    // session created

    QBUUser *user = [QBUUser user];
    user.password = @"[email protected]";
    //user.userEmail = @"";
    user.email = @"swami";
    [QBRequest signUp:user successBlock:^(QBResponse *response, QBUUser *user)
    {
        [QBRequest createSessionWithSuccessBlock:^(QBResponse *response, QBASession *session)
        {
            NSLog(@"checkingl registering");
            [QBRequest userWithLogin"" successBlock:^(QBResponse *response, QBUUser *user)
            {
                NSLog(@"checkingl updatingqb");
                //[self loginQBwithUser:userName];
            } errorBlock:^(QBResponse *response)
             {
                // Handle error
            }];

        }errorBlock:^(QBResponse *response)
        {
            // Handle error
        }];

        NSLog(@"QBSignup Success");
    } errorBlock:^(QBResponse *response)
    {
        NSLog(@"error while signing up with QB %@",response);
    }];
}
errorBlock:^(QBResponse *response)
{
    NSLog(@"%@", response.error);
}];



Best Answer-推荐答案


尝试将 /usr/include/libxml2 添加到 Xcode Header search path-lxml2, -ObjC 标志到 Other项目设置中的链接器标志部分。

关于ios - 在 quickblox 中注册新用户时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27599388/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap