Cocoapods was the most commonly used tool for installing external libraries before the introduction of Swift Package Manager. This means it is very likely to find it in older projects, so this article may be helpful for you, however we recommend to use SPM when possible.
Installing Cocoapods
To use Cocoapods, we need to install it on our Mac. To do this, simply run the following command in the terminal:
sudo gem install cocoapods
Initializing Cocoapods in Our Project
Once installed, we need to initialize it in our project. In the terminal, navigate to the root folder of your Xcode's project and run the following command:
pod init
Continue reading
Access to all the content with our plans.
- Junior level content
- Senior level content
- Expert level content
- Extra content
- Question submissions
Monthly
Yearly
Be the first to comment