how to run pod install in project directory

后端 未结 2 2031
庸人自扰
庸人自扰 2021-01-04 01:15

A tutorial tells me to run pod install in the project directory. Can anyone tell me how to do that?

2条回答
  •  渐次进展
    2021-01-04 01:48

    Close your Xcode project before you carry out the following steps.

    1. First check if you have cocoapods installed. For this, type pod --version into the terminal and if a version no. is returned, you are good to move on to step 3.
    2. If not installed, install cocoapods using the command sudo gem install cocoapods in terminal.
    3. Next type cd and name of your Xcode project directory
    4. Type pod init in terminal. This adds the podfile into your project where you can make edits.
    5. Next type 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.

提交回复
热议问题