A tutorial tells me to run pod install
in the project directory. Can anyone tell me how to do that?
Open Terminal.
If you haven't already done so, run this command:
sudo gem install cocoapods
Wait for it to finish before proceeding.
Find the project directory in the Finder. This should be the folder that has the Xcode project in it.
Type cd
into the terminal, followed by a space.
Drag and drop the project directory into the terminal window. It should now say something like this:
cd /Users/someone/Downloads/WonderfulProject
Press return.
Now type pod install
. Wait for that to finish. It could take a while.
Done!
Close your Xcode project before you carry out the following steps.
pod --version
into the terminal and if a version no. is returned, you are good to move on to step 3.sudo gem install cocoapods
in terminal.cd
and name of your Xcode project directory pod init
in terminal. This adds the podfile into your project where you can make edits.pod install
.Now, if a Podfile already exists in your Xcode project folder, for example if the tutorial already added it into the project for you, then you can just carry out step 5, provided you have cd-ed into your Xcode project directory.