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的访问解决方案
5、在iOS9中使用URL scheme
LSApplicationQueriesSchemes urlscheme urlscheme2 urlscheme3 urlscheme4
<key>LSApplicationQueriesSchemes</key> <array> <string>weixin</string> </array>