参考:iOS SDK开发
iOS SDK开发frame
合并SDK
脚本合并SDK
高级篇
一、新建framework

二、写入文件代码


三、设置公共文件

四、设置项目配置



五、编译生成真机和模拟器framework
模拟器
选择模拟器,执行编译按钮commend + B,直到SFSDKTest.frame文件变成黑色为止

真机

成功后如何查看framework支持哪些设备

模拟器的架构

真机的架构

通过终端:
cd /Users/fly/Library/Developer/Xcode/DerivedData/SFSDKTest-hcgoomklysgepnfbzypktmybcblp/Build/Products/Debug-iphonesimulator/SFSDKTest.framework
lipo -info SFSDKTest
六、合并

合并debug和release下的模拟器和真机下的包

网友评论