Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make an existing project a framework iOS

Tags:

ios

frameworks

I have an existing project. I just like to ask if it is possible to convert it to a framework? I have tried searching but I cannot find any tutorial on how to do it.

like image 391
MiuMiu Avatar asked Nov 19 '12 06:11

MiuMiu


2 Answers

Solution for iOS7 or previous

If you want to create a framework in iOS7 you can follow this link. It explain how to create a framework starting from a static library.

http://www.raywenderlich.com/65964/create-a-framework-for-ios

Solution for iOS8

With iOS8 is possible to create framework natively. You can find a good video in the WWDC14 website called Building Modern Frameworks (you'll find both videos and pdf).

Cocoapods

From your question is not clear what you need to do with the framework. If you need to share a lib you can give a look to the cocoapods project. You can use it for both public libraries or privates. I'm using it at work for both the scenarios

like image 105
Luca Bartoletti Avatar answered Oct 23 '22 02:10

Luca Bartoletti


For iOS I would suggest CocoaPods unless you don't want to distribute the code.

Even in that case you could use CocoaPods. Especially to avoid embedding other third-party libraries or frameworks.

like image 43
Rivera Avatar answered Oct 23 '22 02:10

Rivera