iOS Development Tips & Tricks - (1)
Speed up pod update
with mirror Spec repo
Execute this command in your terminal:
git config --global url."https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs".insteadOf "https://github.com/CocoaPods/Specs"
Or add this in ~/.gitconfig
:
[url "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs"]
insteadOf = https://github.com/CocoaPods/Specs
Speed up submitting podspec
- Find the source file for CocoaPods with:
gem which cocoapods
. - Edit
./lib/cocoapods/command/repo/push.rb
,comment outvalidate_podspec_files
. - Now you can submit podspec without linting.