Embed frameworks inside a framework iOS

后端 未结 1 1364
再見小時候
再見小時候 2021-02-15 17:06

I have a project containing another target(framework) which is a dependency of the main project. That framework requires it\'s own frameworks, so I\'ve added them using carthage

相关标签:
1条回答
  • 2021-02-15 17:26

    I was also facing this issue for some time and I had a three level hierarchy where the outer most 'Umbrella Framework' should not be distributed with the other frameworks. How I resolved it was by setting the 'Run Search Paths' under 'Linking' in 'Build Settings' of each of the 'Umbrella Framework' to point to the 'Copy Files' destination that is set in the 'Build Phases' (You have to add a 'Copy Files' build phase and preferable set its' destination to 'Frameworks', then add each 'Sub-framework' you want to embed).

    Copy sub-framework to 'Frameworks'

    Set 'Runpath Search Paths' to 'Frameworks'

    0 讨论(0)
提交回复
热议问题