1. Home
  2. Docs
  3. Documentation
  4. Getting Started with Swift
  5. Setting up Your Dev Environment

Setting up Your Dev Environment

To run any iOS app, and implicitly our source codes, you’ll need a laptop running on MacOS. Additionally, you’ll need to install Xcode and Cocoapods. If you don’t have them installed already, follow the details below. Otherwise, simply skip to the next section. 

1. Install Xcode

First of all, you need to install the latest version of Xcode. It can be downloaded for free from Apple’s website. Make sure you download the latest GM version, and not a beta one. You can still try to run our templates in Xcode Beta, but keep in mind they are more stable on the GM release.

2. Install Cocoapods

Cocoapods is a dependency manager for Swift projects. In our apps we use a few popular open-source libraries, to make coding more fun (e.g. Firebase, Alamofire, SnapKit, etc.). Their source code needs to be downloaded before the Xcode project runs, and Cocoapods is the tool in charge with that. You can follow the instructions on how to install Cocoapods by heading over to their website, or you can simply try and run

sudo gem install cocoapods