繁体   English   中英

xcode在模拟器上运行良好,但是在部署到ios 6时遇到错误

[英]xcode running well on simulator but when deploy to ios 6 encounter error

2012-10-08 14:48:14.579 sageby [2716:907] *由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'-[SBJsonParser errorTrace]:无法识别的选择器已发送至实例0x1fda4660'*首先抛出调用栈:( 0x352412a3 0x34a1397f 0x35244e07 0x35243531 0x3519af68 0x12932f 0x1293a7 0x12cda3 0x12c9b1 0x12c753 0x12aac7 0x12e567 0x12eac3 0x3a26bef5 0x3a1ab9f1 0x3a1ab90d 0x384ba5df 0x384b9ccb 0x384e2133 0x3518774d 0x384e2593 0x3844615d 0x35216683 0x35215ee9 0x35214cb7 0x35187ebd 0x35187d49 0x35ef02eb 0x37dcd301 0xaaaf1 0x39e0cb20)的libc ++ abi.dylib:终止称为抛出异常(LLDB)


//MBProgressHUD 
    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:self.view animated:YES];
    hud.labelText=@"Accessing account..";
    hud.labelFont=[UIFont fontWithName:@"Arial Rounded MT Bold" size:14];


            //URL GETTING
            NSString *phpfile=[[NSString alloc]initWithFormat:@"http://dev.xxxx.com/pxxx/Module_MyPxxx/json_xxxx_xxx_info.php"];
            NSString *param_str=[[NSString alloc]initWithFormat:@"email=%@", mydelegate.overall_email];
            NSString *receivedDataAsString=[mydelegate phpConnection:param_str :phpfile];

            SBJsonParser *parser=[[SBJsonParser alloc]init];
            NSError *error=nil;
            self.dic_user_info=[[parser objectWithString:receivedDataAsString error:&error]objectAtIndex:0];
            if(error)
            {
                NSLog(@"JSON Parser error! Reason: %@", error.localizedDescription);
            }



            //URL GETTING
            phpfile=[[NSString alloc]initWithFormat:@"http://dev.xxx.com/pxxx/Module_MyPxxx/json_get_xxx_xxx_pxxx.php"];
            param_str=[[NSString alloc]initWithFormat:@"email=%@", mydelegate.overall_email];
            receivedDataAsString=[mydelegate phpConnection:param_str :phpfile];

            parser=[[SBJsonParser alloc]init];
            error=nil;
            self.array_polls=[parser objectWithString:receivedDataAsString error:&error];
            if(error)
            {
                NSLog(@"JSON Parser error! Reason: %@", error.localizedDescription);
            }

        [self.tableView reloadData];
        [MBProgressHUD hideHUDForView:self.view animated:YES];

嗨,我是应用程序的开发人员。

问题是,在Xcode 4.5上运行是正确的,但仅在iPhone设备上运行将无法正常工作。

暂无
暂无

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

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