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

时间:2013-12-10 10:41:17

标签: iphone quickblox

- (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]时崩溃;

1 个答案:

答案 0 :(得分:0)

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

您似乎忘了添加一些框架,例如 libxml libresolv libz