How to use CocoaPods with multiple Framework subprojects

后端 未结 3 1638
感情败类
感情败类 2021-01-31 16:29

First of all, I\'ve turned on use_framework! in Podfile.

Assume the main project is MAIN_APP, and two subprojects are FRAMEWORK_A and FRAMEWORK_B.

MAIN_APP require

3条回答
  •  终归单人心
    2021-01-31 17:00

    I think you can also get around this by just making FrameworkA and FrameworkB into local (static library) pods and it will de-duplicate everything for you and integrate it into the host app properly.

    Examples: https://github.com/rob-keepsafe/PodFrameworksIssue

    • master branch shows duplicate classes and umbrella frameworks like you have
    • deduped branch makes the internal dynamic frameworks into local pods (as static libs) to de-dupe and still link in the dependencies

提交回复
热议问题