Can I develop my own objective-C Framework for Cocoa Touch Applications?

前端 未结 9 1094
抹茶落季
抹茶落季 2020-12-13 07:03

Is it possible to create an own obj-C Cocoa Touch framework which can be used by other developers? And furthermore can you protect this framework?

9条回答
  •  伪装坚强ぢ
    2020-12-13 08:05

    You can create a static library. There is an option in the XCode project chooser to do this. You'll have to distribute the compiled static library file and the header files to users of your library. Your actual implementation files (.m) do not need to be distributed.

    GHUnit does a good job of this - packaging up the libraries for both simulator and device - so I recommend looking at this project. (I also recommend using this library for unit testing :-)

提交回复
热议问题