开发者

how to create a static library or framework from a already available source code in iOS

开发者 https://www.devze.com 2023-04-12 21:34 出处:网络
My clients wants to use some of the already available features in my app into their app. But, i dont want to share my source code with them and vice versa. I found out from some googling that, we can

My clients wants to use some of the already available features in my app into their app. But, i dont want to share my source code with them and vice versa. I found out from some googling that, we can do this by creating some static libraries or frameworks in iOS. Can anyone throw some light on how to create a static library or framework (which开发者_StackOverflow社区 ever is better) out of my already available source code.


My preference is to use static libraries over Frameworks. You will provide your customers the library file (.a extension) and the header file(s) for the functions in it. They just need to install the files somewhere in their project tree, set the include path, add the library to the project and they are good to go.

Note that if you want them to use your lib in the Simulator as well as on device you will need to provide them two versions of the library, one for each.

For instructions on how to create and use an iOS static library see this site.


Just for your information:

I created a static framework for iOS according to jverkoey's instruction


A ton of thanks to Diney Bomfim for his excellent article on how to create a framework. This is exactly what i am looking for.

EDIT - The Link is NOT working anymore...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号