Before we begin coding, there are a few things we need to install, update, and configure on your laptop.
In order to develop native applications for iOS, you need to have Xcode installed on your laptop. You can download and install Xcode from Apple’s App Store. The download is ~2Gb, so it might take up to one hour depending on your network connection.
You need different command line tools to be installed :
jq. These tools have themselves requirements on
npm. To install and configure these, open a Terminal on your laptop and type the following commands:
Follow these instructions to install the prerequisites using HomeBrew package manager.
# install brew itself /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install python3 and pip3 brew install python3 # install the AWS CLI brew install awscli # install Node.js & npm brew install node # install the AWS Amplify CLI npm install -g @aws-amplify/cli # install jq # required to import some data into our API and # to automate local tasks, such as cleanup) brew install jq # install cocoa pods sudo gem install cocoapods
If you already have one or several of these dependencies installed, just verify you have the latest version. Here are the versions we tested the workshop instructions with. Any more recent version should work as well.
brew --version # Homebrew 2.3.0 # Homebrew/homebrew-core (git revision 467e0; last commit 2020-06-05) # Homebrew/homebrew-cask (git revision 8a0acb; last commit 2020-06-05) python3 --version # Python 3.7.3 aws --version # aws-cli/2.0.19 Python/3.7.4 Darwin/19.5.0 botocore/2.0.0dev23 node --version # v14.4.0 amplify --version # Scanning for plugins... # Plugin scan successful # 4.22.0 pod --version # 1.9.3
These commands will take a few minutes to finish.
To learn more about the tools we are instaling, you can follow the following links: