Learning Note iOS

Cocoapods setup

  1. Install

    1
    $ sudo gem install cocoapods
  2. Setup

    1
    $ pod setup --verbose
  3. Init

    1
    2
    $ cd $PROJECT
    $ pod init
  4. $ vi Podfile

    • uncomment lines as instruction
    • add pod
  5. Install

    1
    $ pod install
  6. Open with Xcode

    open $PROJECT.xcworkspace instead of $PROJECT.xcodeproj

Now, we are able to import SwiftyJSON in swift files