//can do this anywhere in your terminal; if it doesn't work, //try executing "sudo gem install cocoapods" in your terminal instead.gem install cocoapods//run pod init in the same directory as your project.pod init//run pod install after you've finished changing your .podfile to add//any libraries you wish.pod install