【经验之谈】ASIHTTP的bug-->Could not successfully update network info during initialization
来源:互联网 发布:手机搭建云免流软件 编辑:程序博客网 时间:2024/06/03 14:33
真机测试网络相关不可用Could not successfully update network
<Error>: Could not successfully update network info during initialization.
设备报上面那种错误,求指导:
现象:
模拟器安装app,一切ok;
用xcode连接ios设备,run安装,一切ok;
用xcode打包ipa,用设备安装,结果app种所有网络请求相关操作无反应,报上面的错误;
设备报上面那种错误,求指导:
现象:
模拟器安装app,一切ok;
用xcode连接ios设备,run安装,一切ok;
用xcode打包ipa,用设备安装,结果app种所有网络请求相关操作无反应,报上面的错误;
查到的原因:
是使用ASIHTTP包,某些地方开启了Debug,如果你打包用的是release,则网络请求某些功能用不了。
解决:
1:应该把debug关闭
以前不是很清楚原因,现在明白了;这个是ASIHTTP包的bug,你可以这样处理它;
选中target/项目后,在build phases选项中的compile Sources里找到ASIHTTP包的文件,点击加上运行参数-O0(capitol O zero)即可;
实际上主要是这两个编译文件(ASIFormDataRequest.m ASIHTTPRequest.m)加参数[-fno-objc-arc -O0]
(http://stackoverflow.com/questions/9123975/asihttprequest-fails-in-production-builds);
2:我用debug模式打包ipa的,别人再装就ok了。如下图
- 【经验之谈】ASIHTTP的bug-->Could not successfully update network info during initialization
- Could not successfully update network info during initialization.
- Could not successfully update network info during initialization.
- android studio 的 Error occurred during initialization of VM Could not reserve enough space fo 解决办法
- Error occurred during initialization of VM Could not reserve enough space for object heap Could not
- install-info error during update
- ant build Error occurred during initialization of VM Could not reserve enough space for object heap
- Error occurred during initialization of VM Could not reserve enough space for object heap
- 【问题解决】Android Stdio报错:Error occurred during initialization of VM Could not reser
- Error occurred during initialization of VM Could not reserve enough space for object heap
- 遇上Error occurred during initialization of VM Could not reserve enough space for object heap
- AndroidStudio启动错误:Error occurred during initialization of VM Could not reserve enough space for ...
- Error occurred during initialization of VM; Could not reserve enough space for 1572864KB object heap
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- android studio Error occurred during initialization of VM Could not reserve enough space
- Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap
- Error occurred during initialization of VM Could not reserve enough space for object heap
- Visual Studio中通过dll资源引用其他文件
- chmod 修改权限
- Linux 学习笔记
- Android android.os.NetworkOnMainThreadException 异常处理
- System Type Triplets
- 【经验之谈】ASIHTTP的bug-->Could not successfully update network info during initialization
- cdn有什么用处
- CareerCup-4.7
- IOS电影播放器—MPMoviePlayerController
- 用python爬虫抓站的一些技巧总结
- QT 相关资源(书籍、论坛、博客等。。。)整理...
- linq简单实例
- 2013年4月IT技术行业网站综合影响力排名
- 什么时候用GET?什么时候用POST?