【发布时间】:2018-06-22 06:24:18
【问题描述】:
我正在尝试将我不拥有的开源项目转换为使用 Carthage,以便我可以将其作为依赖项包含在内。我添加了一个新方案,并将该方案设为共享。我将其签入到我的本地 git 存储库中。这是在我的购物车文件中:
git "file:///Users/crystaltwix/Projects/plcrashreporter" "shared-scheme"
当我尝试运行时
carthage update --platform iOS
我确实看到 Carthage 使用正确的 git 哈希检查 plcrashreporter,但我得到的错误是
*** Skipped building plcrashreporter due to the error:
Dependency "plcrashreporter" has no shared framework schemes for any of the platforms: iOS
为了让 Carthage 提供框架,还需要做些什么吗?
【问题讨论】:
-
打开
Carthage/build/iOS/plcrashreporter里面的项目检查框架目标,shared标志是否启用? -
@AndreaMugnaini 是的,它被检查为共享。
-
@AndreaMugnaini 是的,就是这样。
-
我确实将该项目与 Carthage 集成,但由于该项目已经过时,我不得不提出一个拉取请求。我将在结果下方发布。
标签: ios objective-c swift carthage