Make an existing project a framework iOS

前端 未结 4 1711
离开以前
离开以前 2021-01-18 01:23

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.

4条回答
  •  天涯浪人
    2021-01-18 01:53

    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

提交回复
热议问题