【问题标题】:How to install older version on carthage如何在迦太基上安装旧版本
【发布时间】:2018-07-08 09:28:26
【问题描述】:
我需要 carthage 来运行 Appium 测试。
虽然 Appium 社区仍在努力支持 XCode9.2,但我们需要依赖 XCode 8.3.3
操作系统:MacOS High Sierria
XCode 版本:XCode 8.3.3
Java:1.9
但是当我运行命令 brew install carthage 时,出现以下错误:
Error: Your Xcode (8.3.3) is too outdated.
请参考下面的链接,这意味着 - XCode9 对 Appium 的支持尚未推出
[https://github.com/facebook/WebDriverAgent/issues/639][1]
请建议同时解决。
谢谢
【问题讨论】:
标签:
ios
xcode
appium
appium-ios
carthage
【解决方案1】:
1) 首先确保删除所有内容:
brew uninstall --force carthage
2) 然后从这里搜索你喜欢的提交:
https://github.com/Homebrew/homebrew-core/search?p=2&q=carthage&type=Commits&utf8=✓
3) 你的情况可能是这样的:
https://github.com/Homebrew/homebrew-core/commit/f74d9ba598c9843552450abeb382cacd0e71d4c0
与 Carthage v0.24 相关的一个,它应该与您使用 Xcode 8.3.3 的要求兼容。
4) 然后获取提交标识符f74d9ba598c9843552450abeb382cacd0e71d4c0 并运行:
brew install https://github.com/Homebrew/homebrew-core/raw/f74d9ba598c9843552450abeb382cacd0e71d4c0/Formula/carthage.rb
【解决方案2】:
我遇到了同样的问题,但无法使用brew install。尝试执行此操作时,我不断收到 404 错误。
为了获得旧版本,我从 repo 中克隆了 Carthage 项目,将我的工作副本更改为我需要的指定版本标签并运行 make install。这行得通:D