网站开发公司对比药品招商网站大全
//云库房间
 1.GitHub上创建开源框架项目须包含文件:
 LICENSE:开源许可证;README.md:仓库说明文件;开源项目;(登录GitHub官网)
 2.
 云仓储库构建成功(此时云库中没有内容三方框架)!!!
 3.
 4.
5.
//遵循着层次结构的内容(.a静态库)
 6.创建项目包(目标层.a静态库) (只支持OC不支持swift)
 
 
 
 
 
 /Users/haijunyan/Desktop/CustomKit/StaticLibTools/StaticLibTools
 
 cd /Users/haijunyan/Desktop/CustomKit/StaticLibTools/StaticLibTools
 pod init
 pod install
 
7.添加.a静态库的目标内容
 StaticLibTools.h
 #import <UIKit/UIKit.h>
 
 
 Xcode聚焦于BuildPhases配置窗口,选择Editor\Add Build Phase\Add Headers Build Phase
 
 异常:
 
 
 8.添加.a静态库的配置
 Public Headers Folder Path
 include/$(PROJECT_NAME)
 
 异常:
 
 处理:
 Public Headers Folder Path
 
 
 Dead Code Stripping
 Strip Debug Symbols During Copy
 Strip Style设置为Non-Global Symbols
 
 
 
 9.静态库.a对应的架构型项目的构建已完成
 
 Generic iOS Device进行编译运行
 任意Simulator(此处选择Simulator iPhone11)进行编译运行
 
 
 支持模拟器的.a文件
 
 支持真机的.a文件
 
 StaticLibTools.h
 
 10.合并静态库
模拟器静态库.a文件和真机静态库.a文件 合并 通用型静态库.a文件
 
 lipo -create /Users/haijunyan/Desktop/arepo/true/libStaticLibTools.a /Users/haijunyan/Desktop/arepo/simulator/libStaticLibTools.a -output /Users/haijunyan/Desktop/arepo/all/libStaticLibTools_all.a
 
 通用型静态库.a文件即libStaticLibTools_all.a
11.静态库使用
 导入静态库libStaticLibTools.a文件和.h头文件至待引用项目内
 
 
 //调用函数
 [StaticLibTools testDemo];
//静态库不兼容即需要合并静态库
 
备注:
 https://blog.csdn.net/yanhaijunyan/article/details/133883652?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22133883652%22%2C%22source%22%3A%22yanhaijunyan%22%7D
https://blog.51cto.com/u_15551344/5645802
 https://www.jianshu.com/p/5cc156ea6f80
