簡體   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