*** Install Xcode first for save the time *** Homebrew need xcode command line tools first
Install Git and bash-completion:
brew install git && brew install bash-completion
(Note: If this install fails with a 404 error, and you already have git installed, just remove the git part of this brew install)
Add bash-completion to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
- Install rbenv
brew install rbenv
- Install ruby
rbenv install <ruby version>
- Setup environment
rbenv global <ruby version>
rbenv local <ruby version>
vi ~/.bash_profile
The add to bash_profile file
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
Quit terminal
- Doube check ruby version
ruby -v
- install cocoapods
sudo gem install cocoapods
https://github.com/realm/SwiftLint
https://github.com/Tencent/MLeaksFinder
https://github.com/fastlane/fastlane
Combo:
https://github.com/quicktype/quicktype-xcode (https://app.quicktype.io/#l=swift)
https://github.com/Hearst-DD/ObjectMapper
Valid JSON Online https://jsonlint.com/
https://www.wtfautolayout.com/
SwiftGen