1. sudo gem update --system [update ruby for faster processing]
2. sudo gem install cocoapods -V [install cocoapods]
Using the terminal, go into your project's folder:
1. cd desktop/qrreader [example]
2. touch Podfile [create the file]
3. open -e Podfile [open it]
Inside the Podfile, add in:
1. pod 'ZXingObjC' [save and close]
Back to the terminal
1. pod install