mac安装brew和carthage
2019-04-12 本文已影响0人
AlwaysBlue
1、安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
在安装的过程中有以下报错:
![](https://img.haomeiwen.com/i759898/b2e43d0203a51fc1.png)
根据提示,先切回到自己的账户,然后继续执行该命令
sudo chown -R $(whoami) /usr/local/Cellar
/usr/local/bin/brew update --force
2.检查brew是否安装成功
执行命令brew
![](https://img.haomeiwen.com/i759898/d2c24c358a2c5e95.png)
3.安装carthage
brew install carthage
![](https://img.haomeiwen.com/i759898/b00e541f030635f5.png)
4.验证安装成功
carthage version
![](https://img.haomeiwen.com/i759898/82ddc7d1d62ae201.png)
5.安装成功后,在项目中使用carthage
![](https://img.haomeiwen.com/i759898/c0e56b5c8fba80e3.png)
6.报错incompatible swift version
执行如下命令:carthage update --platform iOS --no-use-binaries
![](https://img.haomeiwen.com/i759898/51321e0199cbc12d.png)
还没有成功,恩 我要放弃了。改天搞吧