美文网首页
iOS9联网适配

iOS9联网适配

作者: 羊驼先生丶 | 来源:发表于2016-03-10 19:02 被阅读83次

iOS9 适配

PS:设备的iOS版本只能使用对应版本的Xcode,比如,设备运行的iOS版本为9.2,则只能使用Xcode 7.2 进行真机测试。

真机测试以及最终上线 必须 在iOS9 设备上进行测试完毕后才能提交。

iOS9访问http协议的URL需要修改

有两种修改方式:

方法一:你可以在Info.plist 配置中添加或者修改XML源码:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

方法二:在 info.plist 文件中配置显示如下:

Bitcode

真机测试或者项目打包编译过程中,出现如下类似错误:

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

需要在工程中关闭bitcode,Xcode7 及以上版本会默认开启 bitcode 。

关闭方法见下图:

iOS9 适配系列教程

参考文章:https://github.com/ChenYilong/iOS9AdaptationTips

相关文章

网友评论

      本文标题:iOS9联网适配

      本文链接:https://www.haomeiwen.com/subject/kpvtlttx.html