菜鸟教程小白 发表于 2022-12-13 04:09:35

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


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

<pre><code>2014-12-22 14:14:59.369 closeChat
+:
unrecognized selector sent to class 0x223774
2014-12-22 14:14:59.373 closeChat *** Terminating app due to uncaught exception
&#39;NSInvalidArgumentException&#39;, reason:
&#39;+: unrecognized selector sent to class 0x223774&#39;
*** 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
</code></pre>

<p>我使用了以下代码...</p>

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

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

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

      NSLog(@&#34;QBSignup Success&#34;);
    } errorBlock:^(QBResponse *response)
    {
      NSLog(@&#34;error while signing up with QB %@&#34;,response);
    }];
}
errorBlock:^(QBResponse *response)
{
    NSLog(@&#34;%@&#34;, response.error);
}];
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>尝试将 <strong>/usr/include/libxml2</strong> 添加到 Xcode <strong>Header search path</strong> 和 <strong>-lxml2, -ObjC</strong> 标志到 <strong>Other项目设置中的链接器标志</strong>部分。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在 quickblox 中注册新用户时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/27599388/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/27599388/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在 quickblox 中注册新用户时应用程序崩溃