B18-iOS9的适配相关

1、警告directory not found for option问题

      ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

      出现原因是因为Xcode7将framworks位置改变了,目前还没有方法解决。

 

2、控制台输出error问题,(不影响程序运行)
         Sep 22 13:48:43  openBridge[2525] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
         Sep 22 13:48:43  openBridge[2525] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
         Sep 22 13:48:43  openBridge[2525] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

         解决方法:info.plist内的View controller-based status bar appearance键值对,改为YES或者删掉即可。

 

3、iOS9适配参考文章

   http://www.cocoachina.com/ios/20150703/12392.html

 

4、iOS9限制http的访问解决方案

方案一:将要访问的域名设置为白名单
方案二:直接去除http限制

5、在iOS9中使用URL scheme

在iOS9中,如果使用URL scheme必须在"Info.plist"中将你要在外部调用的URL scheme列为白名单,否则不能使用。key叫做LSApplicationQueriesSchemes ,键值内容是
LSApplicationQueriesSchemes urlscheme urlscheme2 urlscheme3 urlscheme4
<key>LSApplicationQueriesSchemes</key>
<array>
      <string>weixin</string>
</array>

 

 
posted @ 2015-09-25 19:27  朱亚男  阅读(248)  评论(0编辑  收藏  举报