IOS 开发中[IOS9更新后...网络?第三方库?报错?]
2015-12-10 10:45
555 查看
IOS 开发 --
今天挺身边的大神,都说Xcode7 都更新到7.1.1 版本了 - -
于是开始
下载。。。
安装。。。
结果。。。
访问API 网络访问不了, 第三方库用不了,于是开始翻官方文档: https://developer.apple.com/library/ios/navigation/ 找到解决方法
网络问题:
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
访问第三方库问题:
Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the
need to submit a new version of your app to the store.
说的是bitcode是被编译程序的一种中间形式的代码。包含bitcode配置的程序将会在App store上被编译和链接。bitcode允许苹果在后期重新优化我们程序的二进制文件,而不需要我们重新提交一个新的版本到App store上。 https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.html
Bitcode. When you archive for submission to the App Store, Xcode will compile your app into an intermediate representation. The App Store will then compile the bitcode down into the 64 or 32 bit executables as necessary.
当我们提交程序到App store上时,Xcode会将程序编译为一个中间表现形式(bitcode)。然后App store会再将这个botcode编译为可执行的64位或32位程序。
再看看这两段描述都是放在App Thinning(App瘦身)一节中,可以看出其与包的优化有关了。喵大(@onevcat)在其博客开发者所需要知道的
iOS 9 SDK 新特性中也描述了iOS 9中苹果在App瘦身中所做的一些改进,大家可以转场到那去研读一下。
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
要么让第三方库支持,要么关闭target的bitcode选项。
实际上在Xcode 7中,我们新建一个iOS程序时,bitcode选项默认是设置为YES的。我们可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置。
不过,我们现在需要考虑的是三个平台:iOS,Mac OS,watchOS。
对应iOS,bitcode是可选的。
对于watchOS,bitcode是必须的。
Mac OS不支持bitcode。
附图:修改位置
今天挺身边的大神,都说Xcode7 都更新到7.1.1 版本了 - -
于是开始
下载。。。
安装。。。
结果。。。
访问API 网络访问不了, 第三方库用不了,于是开始翻官方文档: https://developer.apple.com/library/ios/navigation/ 找到解决方法
网络问题:
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
访问第三方库问题:
Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the
need to submit a new version of your app to the store.
说的是bitcode是被编译程序的一种中间形式的代码。包含bitcode配置的程序将会在App store上被编译和链接。bitcode允许苹果在后期重新优化我们程序的二进制文件,而不需要我们重新提交一个新的版本到App store上。 https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.html
Bitcode. When you archive for submission to the App Store, Xcode will compile your app into an intermediate representation. The App Store will then compile the bitcode down into the 64 or 32 bit executables as necessary.
当我们提交程序到App store上时,Xcode会将程序编译为一个中间表现形式(bitcode)。然后App store会再将这个botcode编译为可执行的64位或32位程序。
再看看这两段描述都是放在App Thinning(App瘦身)一节中,可以看出其与包的优化有关了。喵大(@onevcat)在其博客开发者所需要知道的
iOS 9 SDK 新特性中也描述了iOS 9中苹果在App瘦身中所做的一些改进,大家可以转场到那去研读一下。
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
要么让第三方库支持,要么关闭target的bitcode选项。
实际上在Xcode 7中,我们新建一个iOS程序时,bitcode选项默认是设置为YES的。我们可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置。
不过,我们现在需要考虑的是三个平台:iOS,Mac OS,watchOS。
对应iOS,bitcode是可选的。
对于watchOS,bitcode是必须的。
Mac OS不支持bitcode。
附图:修改位置
相关文章推荐
- 7种网络连接方式demo
- linux平台几个压力,网络流量的工具
- STM32 LWIP TCP 以太网调试注意问题
- Java HttpClient 的简单应用
- HTTP常见状态码 200 301 302 404 500
- 《HTTP权威指南》– 2.HTTP报文与URL资源
- 《HTTP权威指南》– 3.HTTP方法和状态码
- TFS 2010:服务器不提供Team Foundation服务,HTTP代码503,Service Unavailable
- HTTP Status 500 - Error instantiating servlet class
- TCP,IP详解,卷一:协议学习笔记之第十七章 TCP:传输控制协议
- webApp开发之html5Plus---检查网络等js方法
- 【摘自网络】dll库和lib库有什么区别
- httpd配置详解
- 太原网络营销师郭文军揭秘淘宝标题的撰写思路
- kafka无法网络访问问题
- ios 9 http配置
- iOS网络请求
- TCP/IP滑动窗口
- Xcode 7 网络请求问题
- 深入理解HTTP Session