 <p>Did you already create a podile?</p> <p>With cocoapods installed, take the following steps:</p> <ul> <li>Open a terminal window, and $ cd into your project directory (cd ~/Path/To/Folder/Containing/your/app)</li> <li>Create a Podfile by running $ pod init</li> <li>Open the podfile (open -a Xcode Podfile) and add the podline and save the file, for example:</li> </ul> <blockquote> <p>pod 'AFNetworking', '~> 3.0'</p> </blockquote> <ul> <li>Run $ pod install in your project directory </li> <li>Open App.xcworkspace</li> </ul> <p>Please find a more extended guide <a href="https://www.raywenderlich.com/97014/use-cocoapods-with-swift" rel="nofollow">here</a></p> <p>Hope this helps!</p>