io6应用程序在Web服务调用时崩溃

时间:2012-09-21 13:16:02

标签: objective-c ios xcode web-services

这里我得到的错误是这样的: 我的代码适用于ios 4/5但在ios6.0上崩溃 在这些行之后,我的应用程序将崩溃

self.con = [[NSURLConnection alloc] initWithRequest:rq delegate:self]         if(self.con){

NSLog(@“连接CON”)         myWebData = [[NSMutableData data] retain]     }

    ========================================
This method not calling 
-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
-(void)connectionDidFinishLoading:(NSURLConnection *)connection

and here below crash log have you see:

        libicucore.A.dylib`ucol_getVersion:
        0x30f92570:  ldr.w  r2, [r0, #204]
        0x30f92574:  cbnz   r2, 0x30f925ae            ; ucol_getVersion + 62
        0x30f92576:  ldr    r2, [r0, #36]
        0x30f92578:  movs   r3, #56
        0x30f9257a:  ldrb.w r2, [r2, #68]
        0x30f9257e:  orr.w  r3, r3, r2, lsr #2
        0x30f92582:  lsls   r2, r2, #6
        0x30f92584:  strb   r3, [r1]
        0x30f92586:  strb   r2, [r1, #1]
        0x30f92588:  ldr    r2, [r0, #36]
        0x30f9258a:  ldrb.w r2, [r2, #69]
        0x30f9258e:  strb   r2, [r1, #2]
        0x30f92590:  ldr    r0, [r0, #32]
        0x30f92592:  cbz    r0, 0x30f925a8            ; ucol_getVersion + 56
        0x30f92594:  ldr    r2, [r0, #36]
        0x30f92596:  ldrb.w r0, [r2, #72]
        0x30f9259a:  ldrb.w r2, [r2, #73]

2 个答案:

答案 0 :(得分:0)

尝试使用Xcode版本4.5.1(4G1004)和部署目标6.0,并且没有崩溃。

您能提供有关您环境的更多信息吗?

答案 1 :(得分:0)

我从iPod媒体库导出歌曲时出现了类似的崩溃,并在导出完成时显示警报视图。我发现this回答有帮助。

  

实际上,故事的寓意是任何UI渲染任务都应该是   如果您正在进行多线程处理,请在MainThread上完成。

我希望这会有所帮助。

Source