How to build an iOS framework with weak-linked CocoaPods libraries

后端 未结 2 2037
面向向阳花
面向向阳花 2021-02-07 11:32

I am trying to build an iOS Framework (Test.framework) using the new template offered by Xcode 6 for creating Cocoa Touch Frameworks. The framework has different dependencies (a

2条回答
  •  失恋的感觉
    2021-02-07 12:14

    I can not comment yet so I will answer here. I think you can not do that. Cocoapods create a static library not a dynamic one so all the code should be there when you compile and is embedded in your framework.

    Cocoapods documentation, go to "What is happening behind the scenes?" for a detail explanation

    If you want to put together some basic configuration for some of your usual pods probably the best way to go is making a custom cocoapod with the other ones as dependencies. That way you can rely in cocoapods to manage versions and have the code updated per your preferences. I am using a similar approach myself and I am quite happy with the results.

提交回复
热议问题