ASIHTTPRequest开始但从未结束 [英] ASIHTTPRequest begins but never ends
问题描述
我已经使用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屋!