ASIHTTPRequest 开始但永不结束 [英] ASIHTTPRequest begins but never ends

查看:37
本文介绍了ASIHTTPRequest 开始但永不结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 ASIHTTPRequest 一千次了.这一次没有什么不同或特殊,但是......当我在模拟器(iOS 5.0)中启动一个请求时一切正常,当我在开发期间连接的 iPad 上启动一个请求时一切都很好,但是当我刻录一个 AdHoc 构建并将其加载到 iPad 上时,这个特定的 ASIHTTPRequest 启动,但永远不会完成或失败.好吧,我想它开始了.有什么想法吗?

顺便说一句,同一个应用程序在其他几个地方使用 ASIHTTPRequest,一切正常.

解决方案

显然 ASIHTTPRequest 存在错误.如果您关闭 ASIFormDataRequest.m ASIHTTPRequest.m 的优化,一切似乎都有效.

您通过选择目标项目来启动优化,在构建阶段"选项卡的编译源"部分中选择文件;并添加 -O0(国会大厦 O 零).

一切都在此处 进行了解释>

I have used ASIHTTPRequest a thousand times. This times is no different or special, but... when I start a request in the simulator (iOS 5.0) all is fine, when I start one on the iPad connected during development all is fine, but when I burn an AdHoc build and load it onto the iPad, this one particular ASIHTTPRequest starts, but never completes or fails. Well, I presume it is starting. Any ideas?

BTW, the same app uses ASIHTTPRequest is several other places, and all work fine.

解决方案

Apparently there is a bug on ASIHTTPRequest. If you turn off optimization for ASIFormDataRequest.m ASIHTTPRequest.m everything seems to work.

You turn of optimization by selecting the target project, select the file in "Compile sources" section of the "Build Phases" tab; and add -O0 (capitol O zero).

Everything is explained here

这篇关于ASIHTTPRequest 开始但永不结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆