xcode7,ios9 部分兼容设置
2015-09-22 11:43
411 查看
干货:ios9遇到问题https://github.com/ChenYilong/iOS9AdaptationTips
一、xcode7 新建的项目,Foundation下默认所有http请求都被改为https请求.
HTTP+SSL/TLS+TCP = HTTPS
也就是说,服务需要提供https(TLS 1.2)的接口;
如果服务不改变,则客户端info.plist的根<dict>需加下面的键值;
二、xcode7 默认开启,bitcode(iwatch需要),则会导致部分第三方框架报错(比如友盟的错误)
youmeng/libMobClickLibrary.a(MobClick.o)' 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 armv7
这是要么更新库,要么可以在 build setting 中,搜索bitcode,并吧 enable bitcode 设置为 NO
三、iOS9安装企业证书打包的app
企业证书打包的app,安装到手机里面后第一次打开app。不会像以前提示,信任还是不信任该证书;
这是个时候需要iOS9 设置-》通用-》描述文件-》企业级应用 中信任对应的企业开发者。
四、iOS9 URL Schemes
除了要在项目info URL Types中设置URL Schemes,还需要在info.plist里面增加可信任的调用app,否则回报如下错误
-canOpenURL: failed for URL: "weixin://app/wx9c8771d3c07dfd30/" - error: "This app is not allowed to query for scheme weixin"
-canOpenURL: failed for URL: "wtloginmqq2://qzapp" - error: "This app is not allowed to query for scheme wtloginmqq2"
info.plist加入
五、iPad适配Slide Over 和 Split View
分屏应用最好把纯代码改为stroyboard
转自:http://www.cnblogs.com/loganv/p/4647833.html
一、xcode7 新建的项目,Foundation下默认所有http请求都被改为https请求.
HTTP+SSL/TLS+TCP = HTTPS
也就是说,服务需要提供https(TLS 1.2)的接口;
如果服务不改变,则客户端info.plist的根<dict>需加下面的键值;
简单信任所有http服务器 <key>NSAppTransportSecurity</key> <dict> <!--Connect to anything (this is probably BAD)--> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 或者严谨的
<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>yourserver.com</key> <dict> <!--Include to allow subdomains--> <key>NSIncludesSubdomains</key> <true/> <!--Include to allow insecure HTTP requests--> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <!--Include to specify minimum TLS version--> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> </dict> </dict> </dict>
二、xcode7 默认开启,bitcode(iwatch需要),则会导致部分第三方框架报错(比如友盟的错误)
youmeng/libMobClickLibrary.a(MobClick.o)' 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 armv7
这是要么更新库,要么可以在 build setting 中,搜索bitcode,并吧 enable bitcode 设置为 NO
三、iOS9安装企业证书打包的app
企业证书打包的app,安装到手机里面后第一次打开app。不会像以前提示,信任还是不信任该证书;
这是个时候需要iOS9 设置-》通用-》描述文件-》企业级应用 中信任对应的企业开发者。
四、iOS9 URL Schemes
除了要在项目info URL Types中设置URL Schemes,还需要在info.plist里面增加可信任的调用app,否则回报如下错误
-canOpenURL: failed for URL: "weixin://app/wx9c8771d3c07dfd30/" - error: "This app is not allowed to query for scheme weixin"
-canOpenURL: failed for URL: "wtloginmqq2://qzapp" - error: "This app is not allowed to query for scheme wtloginmqq2"
info.plist加入
<key>LSApplicationQueriesSchemes</key>
<array>
<string>urlscheme</string>
<string>urlscheme2</string>
<string>urlscheme3</string>
<string>urlscheme4</string>
</array>
五、iPad适配Slide Over 和 Split View
分屏应用最好把纯代码改为stroyboard
转自:http://www.cnblogs.com/loganv/p/4647833.html
相关文章推荐
- iOS9新特性—ATS使用
- iOS-关于单例类的使用,以及使用单例进行传值
- iOS 扩展类方法之category!
- iOS程序完成后如何生成ipa进行真机测试,签名
- iOS Code Signing: 解惑详解
- iOS Provisioning Profile(Certificate)与Code Signing详解(转)
- 如何去绘制一个圆并且转为imageView格式
- iOS9问题备忘
- iOS 9中使用手Q支付SDK须知
- position:sticky实现iOS6+下的粘性布局
- iOS9的一些问题
- iOS开发动画之绕View旋转的View
- iOS-xcode7 新特性相关
- iOS开发之1分钟集成超炫的个人界面
- ios开发之通知事件
- IOS 百度地图在IOS9上显示不出来的解决办法
- iOS 清除缓存
- 【Node.app】Node.js for iOS
- ios开发---视图切换-storyboard创建
- IOS第四天-新浪微博 -存储优化OAuth授权账号信息,下拉刷新,字典转模型