经过这位哥们的指示http://blog.de3eb.cn/2012/06/xcode%E7%BC%96%E8%AF%91ios-universal-framework/
在github里下载https://github.com/kstenerud/iOS-Universal-Framework
下完后install.sh安装,重启xcode
创建步骤:
1、创建的时候选择static ios framework
2、在编译选项中把需要的headers从project拖到public中
3、点run编译,把生成的product:xxxxx.framework从show in finder中找到,然后复制出来
使用步骤:
1、Link Brinary With Libraries选择复制出来的.framework
2、import的时候使用<framework名/.h文件>,注意是尖括号!
使用framework的好处:不需要设置引入的headers的搜索路径了