1. Background
I hope to run the source code in xcode, enter the project folder in the terminal, execute the ./build command, and find various problems
2. Problem
The first error:
Couldn’t determine repo type for URL:pod文件地址
Re-find the latest cocoapods installation tutorial , just execute the Tsinghua mirror step
The second error:
Unable to add a source with url cocoapods地址
Follow the prompts to execute pod repo add name url [BRANCH]
After reporting an error:
fatal:无法访问xxx Connection refused
Then try to manually clone pod-specs, and find that you need to manually enter the account password, and there is no response even if you enter the account password
3. Solve
Configure https password-free login
In fact, it is divided into two steps
1.vim ~/.gitconfig
[user]
name = xxx
email = xxxx
[core]
autocrlf = input
[credential]
helper = store
2.vim ~/.git-credentials
https://gitlab的username:私钥@coinmarketcap.supply
Note that the private key here needs to be created in gitlab-user settings-access tokens
Then execute ./build.sh to succeed