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

  1. Find the source file for CocoaPods with: gem which cocoapods.
  2. Edit ./lib/cocoapods/command/repo/push.rb,comment out validate_podspec_files.
  3. Now you can submit podspec without linting.

Awesome Native Extensions