Kiwi and CocoaPods with a static shared library

后端 未结 4 1490
轮回少年
轮回少年 2021-01-20 15:25

I have a workspace with 3 projects:

  • MyApp
  • Common
  • Pods

Common is a common library that MyApp depends on. I\'d like to setup Coc

4条回答
  •  一整个雨季
    2021-01-20 15:43

    I'm not sure how to fix the setup you have, but if I were you I would make Common into its own Pod. Pods can be private and just stored in GitHub as a repo. Of course, you need a podspec for Common but I built a sample to test that setup for our build service and it took me less than 30 mins to get it right.

    Then in your Podfile for MyApp, you do something like this:

    pod 'Common', :git => 'git@github.com:lyahdav/Common.git', :commit => 'a1b2c3d'

    And AFNetworking and Reachability can be referenced in the podspec of Common (assuming that's the right dependency).

    This setup also allows you to include Common in whatever other apps you're building without having to embed the code. Again, making assumptions about what you're trying to achieve, so add more detail to the question if that's not right.

提交回复
热议问题