GitHub address:
Fastbot_iOS/handbook-cn.md at main · bytedance/Fastbot_iOS · GitHub
Environmental preparation
1. Install cocoapods:
Execute in terminal sudo gem install cocoapods -v=1.8.1
2.初始化项目:
In the terminal, cd to the current project directory, and then execute
cd Fastbot-iOS && pod install --repo-update
When executing this command, the error CDN: trunk URL couldn't be downloaded was reported. After searching for most of the day, the following method was used to solve the problem.
First go to the repos directory and clone the image of Tsinghua Source.
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
Then add in the podFile file under the project
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
Execute again
cd Fastbot-iOS && pod install --repo-update
Finally, follow the steps in the operating document to configure Xcode