1.创建工程文件 (选择FrameWork进行创建)

2.修改部分build配置



3.创建代码类

4.设置headers

5.分别用真机、模拟器编译 (右键products>framework 将得到两个MyFirstFrameWork.frameWork文件)


6.合并上一步得到的两个文件MyFirstFrameWork( lipo -create 文件A 文件B -output 新路径C )


7.替换文件 (MyFirstFrameWork替换为上一步得到的文件Result.lipo,并修改名字为MyFirstFrameWork)

8.测试成果 (将上一步得到的MyFirstFrameWork.FrameWork拉入本地项目进行测试)

9.结束
网友评论