GitHub地址:
Fastbot_iOS/handbook-cn.md at main · bytedance/Fastbot_iOS · GitHub
环境准备
1.安装 cocoapods:
在终端中执行 sudo gem install cocoapods -v=1.8.1
2.初始化项目:
在终端 cd 到当前项目目录下, 然后执行
cd Fastbot-iOS && pod install --repo-update
在执行这个命令的时候报错CDN: trunk URL couldn‘t be downloaded,经过大半天的搜索后使用下面的方法解决了
首先进入repos目录下clone清华源的镜像
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
然后在项目下的podFile文件中添加
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
再重新执行
cd Fastbot-iOS && pod install --repo-update
最后按照操作文档中的步骤配置Xcode即可