静态库的创建
先创建工程static library demo,建好后刻修改三个属性:
1,Scheme属性框里的destination属性要修改为与后测试平台相同.
2,在build phases的copy header列表里,把project头文件拉到public里面.
3,在xcode的preference偏好设置对话框里的locations頁,设置build location属性为by target.
生成之后显示为成功,但在xcode左侧导航条里点击生成的目标文件为空.此时要手机打开工程目录,在/build子目录下可找到xxx.a的静态库文件.