How to create custom framework

create a project but with the framework


img_1.png

and


img_2.png

build success both in simulate and iPhone OS device
you will see
img_3.png

use terminal

lipo -create [framework absolute path for simulate] [framework absolute path for iPhone device] -output [your des path with file name]

copy-paste one of the frameworks and replace the binary with the new one.
Add the framework to the project (move it to the directory of the project) and import it to the project in Xcode.
build success and import .h file with <>
Done!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容