我们正在开发一个动态伞框架,其中包含几个其他框架。我们的框架结构如下
- 基础框架
- 子框架1
- 子框架2
- 子框架2.1
- 子框架2.2
- 子框架3
我们的伞式框架(Base.framework)的 xcode 项目文件的结构如下。 但是当我执行carthage build命令时,它找到了一些子框架,但无法找到一些子框架。 我应该做什么才能按照我们的 xcode 项目中的结构编译框架
您可以在以下链接中查看我们的框架: https://github.com/Kandy-IO/test-cp
(所有子框架均位于CpaaSSDK.framework的SubFrameworks文件夹中)
最佳答案
通过选择共享方案来确保所有子框架都暴露给 carthage 构建系统。
正如 github 上的 carthage 文档中所述。
Share your Xcode schemes
Carthage will only build Xcode schemes that are shared from your .xcodeproj. You can see if all of your intended schemes build successfully by running carthage build --no-skip-current, then checking the Carthage/Build folder.
If an important scheme is not built when you run that command, open Xcode and make sure that the scheme is marked as Shared, so Carthage can discover it.
文档链接 - https://github.com/Carthage/Carthage#share-your-xcode-schemes
关于ios - 迦太基建立伞形框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56155283/