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!

你可能感兴趣的:(How to create custom framework)