Skip to content

Instantly share code, notes, and snippets.

@quocnb
Last active February 14, 2018 02:25
Show Gist options
  • Save quocnb/e65da409441250c345d759274965d96e to your computer and use it in GitHub Desktop.
Save quocnb/e65da409441250c345d759274965d96e to your computer and use it in GitHub Desktop.

Tools:

*** Install Xcode first for save the time *** Homebrew need xcode command line tools first

Homebrew

https://brew.sh/

Gitcomplete

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

Cocoapods

  • 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

Easy coding

Quick Fake API

https://app.apiary.io

Code quality control

https://github.com/realm/SwiftLint

https://github.com/Tencent/MLeaksFinder

Auto deploy

https://github.com/fastlane/fastlane

Support auto convert JSON to Class code

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/

Debug autolayout warning log

https://www.wtfautolayout.com/

Auto gen storyboard and assets for avoid error

SwiftGen

Icon Generate

https://github.com/onmyway133/IconGenerator/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment