呆呆窝

  • Home

  • Tags

  • Archives

Learning Note iOS

Posted on 2018-11-19

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

12
呆阿呆阿呆

呆阿呆阿呆

11 posts
5 tags
© 2020 呆阿呆阿呆
Powered by Hexo v3.8.0
|
Theme – NexT.Pisces v6.7.0