iOS9 中的一些适配问题

1.URL scheme白名单:在info文件中加入LSApplicationQueriesSchemes(Array),添加需要的scheme,如微信:weixin、wechat 支付宝:alipay

2.iOS9 下默认使用HTTPS,所以app发请求的时候出现网络无法连接的情况。解决办法:在的info.plist 文件里加上如下节点:

NSAppTransportSecurity(dictionary) - NSAllowsArbitraryLoads(Booolean)

3.bitcode 是把程序编译成的一种过渡代码,再把这个过渡代码编译成可执行的程序。bitcode也允许苹果在后期重新优化我们程序的二进制文件,有类似于App瘦身的思想。

用了xcode7的编译器编译之前没问题的项目可能会出现下列报错。

1
XXXX’ does not contain 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。要不然是等待库的开发者升级了此项功能我们更新库,要不就是把这个bitcode禁用。

禁用的方法就是找到如下配置,选为NO.(iOS中bitcode是默认YES,watchOS中bitcodes是不让改的必须YES。)

4.

posted on 2015-11-13 16:15  zero_chan  阅读(153)  评论(0编辑  收藏  举报

导航