应用程序在发布模式下卡住
Greetz,
我已准备好向 appStore 提交应用程序,但问题是当我在发布模式下构建应用程序时,应用程序会卡住(我是否必须在发布模式下构建它才能提交到 appStore?)加载从服务器检索到的第一个数据。这意味着即使已经检索到一些数据(我检索包含数据和图像的 JSON 字符串),我正在使用的 MBProgressHUD 也会无限期地显示。
该应用程序在调试模式下可以完美运行和构建,但由于某种原因在发布模式下却不能。我尝试在该项目上进行 rm -rf 构建并清理它,但无济于事。我尝试从模拟器和设备中删除该应用程序,但没有结果。是我做错了什么,还是代码相关?也许配置?
谢谢你!
这些是我在发布模式下运行时收到的日志消息。应用程序不会崩溃。
[11603:5d03] Starting asynchronous request <ASIHTTPRequest: 0x682e800>
[11603:7803] Request #1 will use connection #1
[11603:7803] Request <ASIHTTPRequest: 0x682e800> received response headers
[11603:7803] Got a keep-alive header,
will keep this connection open for 5.000000 seconds
[11603:7803] Request <ASIHTTPRequest: 0x682e800> finished downloading
data (227370 bytes)
[11603:7803] Request #1 finished using connection #1
[11603:7803] Request finished: <ASIHTTPRequest: 0x682e800>
就是这样,应用程序实际上完成了请求并成功检索了数据,但 MBProgressHUD 仍然卡住了。
Greetz,
I am ready to submit an application to the appStore but the problem is the application gets stuck when I build it on release mode (Do I have to build it on release mode in order to submit to appStore?) but it gets stuck while loading the first data that are retrieved from a server. Which means the MBProgressHUD I'm using is just there displayed indefinitely even if some data was already retrieved (I retrieve a JSON string with data and an Image).
The application works and builds perfectly in debug mode, for some reason on release mode it doesn't. I tried to do a rm -rf build on the project and cleaning it aswell to no avail. I tried deleting the application from the simulator and device with no results. Am I doing something wrong, or is it code related? Maybe provisioning?
Thank you!
These are the log messages I get while running on release mode. The application does not crash.
[11603:5d03] Starting asynchronous request <ASIHTTPRequest: 0x682e800>
[11603:7803] Request #1 will use connection #1
[11603:7803] Request <ASIHTTPRequest: 0x682e800> received response headers
[11603:7803] Got a keep-alive header,
will keep this connection open for 5.000000 seconds
[11603:7803] Request <ASIHTTPRequest: 0x682e800> finished downloading
data (227370 bytes)
[11603:7803] Request #1 finished using connection #1
[11603:7803] Request finished: <ASIHTTPRequest: 0x682e800>
And that's it, the application actually finishes the request and retrieves the data successfully but still the MBProgressHUD gets stuck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
再次测试应用程序的发布模式,是否发生崩溃?或者只是停留在某个执行点。您的日志消息说什么?
Test the application again for Release mode, is it happening to be crashed?? or simply stucking at some point of execution. What does your log messages say?
事实证明,这显然是 while 循环的错误。这段时间是故意空着的。但是当我将 NSLog 放入其中时,发布模式就可以正常工作。非常奇怪和不规则。我猜release使用了一些非常尴尬的配置,尽管它不应该。
It turned out it was apparently the fault of a while loop. The while was empty purposefully. But when I put a NSLog inside it, the release mode works just fine. Very weird and irregular. I guess release uses some very awkward configuration though it shouldn't.