繁体   English   中英

由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:

[英]Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:

- (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实例] loginWithUser:user]时崩溃;

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

看起来您忘了添加一些框架,例如libxmllibresolvlibz等等

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM