【问题标题】:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:
【发布时间】:2013-12-10 10:41:16
【问题描述】:
- (void)completedWithResult:(Result *)result{
   // QuickBlox session creation  result
    if([result isKindOfClass:[QBAAuthSessionCreationResult class]]){

        // Success result
        if(result.success){

            // Set QuickBlox Chat delegate
            //
            [QBChat instance].delegate = self;

            QBUUser *user = [QBUUser user];
            user.ID = ((QBAAuthSessionCreationResult *)result).session.userID;
            user.password  = @"password";


            // Login to QuickBlox Chat

            [[QBChat instance] loginWithUser:user];
        }
        else
        {

            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[[result errors] description] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
            [alert show];
        }
    }
}

-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:无法识别的选择器发送到实例 0x96c4fe0 2013-12-10 16:06:46.716 QUICKBloxTestApp[5990:3907] 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:无法识别选择器发送到实例 0x96c4fe0'*

应用程序在调用 [[QBChat instance] loginWithUser:user] 时崩溃;

【问题讨论】:

  • 假设您没有直接调用名为 attributeFloatValueForName:withDefaultValue: 的方法,我会尝试在您的构建方案中打开僵尸,看看它是否提供了更好的信息。

标签: iphone quickblox


【解决方案1】:

查看本指南http://quickblox.com/developers/IOS-how-to-connect-Quickblox-framework

您好像忘记添加一些框架,例如 libxmllibresolvlibz

【讨论】:

    猜你喜欢
    • 2018-04-05
    • 2013-04-27
    • 2021-09-17
    • 2012-07-12
    • 2021-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多