ios - 迦太基建立伞形框架

标签 ios carthage

我们正在开发一个动态伞框架,其中包含几个其他框架。我们的框架结构如下

  • 基础框架
    • 子框架1
    • 子框架2
      • 子框架2.1
      • 子框架2.2
    • 子框架3

我们的伞式框架(Base.framework)的 xcode 项目文件的结构如下。 但是当我执行carthage build命令时,它找到了一些子框架,但无法找到一些子框架。 我应该做什么才能按照我们的 xcode 项目中的结构编译框架

您可以在以下链接中查看我们的框架: https://github.com/Kandy-IO/test-cp

(所有子框架均位于CpaaSSDK.framework的SubFrameworks文件夹中)

最佳答案

通过选择共享方案来确保所有子框架都暴露给 carthage 构建系统。

Shared schemes

正如 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/

相关文章:

ios - Carthage 需要 git 2.3.0 或更高版本

git - 使用迦太基时要提交什么?

iOS - 在给定十六进制值 ID 的情况下在哪里检查相应的 UI 元素

ios - 从 iphone 和 IOS 应用程序访问在线 Slim API

swift - 如何使用 Carthage 分发可设计/可检查的自定义 View

ios - Xcode8.3-无效的位码签名

ios - Carthage Building 方案使 Bitrise 在 90 分钟后超时

ios - 在 iOS 上观察特定实体类型的托管对象上下文变化的最有效方法是什么?

ios - 在 iOS 5.0/5.0.1 上使用 SSL 的 ASIHTTPRequest 失败

ios - 我如何在核心数据中保存图像然后检索它?使用 swift