Install Dependencies

Before we begin coding, there are a few things we need to install, update, and configure on your laptop.

Apple Software

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 ~7Gb, so it might take up to one hour depending on your network connection.

This workshop requires at least Swift 5.7 and Swift UI framework. These are provided by Xcode 14 or more recent.

Installing or updating

You need different command line tools to be installed : aws, amplify, and jq. 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
/bin/bash -c "$(curl -fsSL"

# install the AWS CLI
brew install awscli

# install the AWS Amplify CLI 
curl -sL | bash && $SHELL

# install jq
# required to import some data into our API and
# to automate local tasks, such as cleanup
brew install jq

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.

aws --version
# aws-cli/2.8.3 Python/3.10.8 Darwin/21.6.0 source/arm64 prompt/off

amplify --version
# 10.3.0

These commands will take a few minutes to finish.

To learn more about the tools we are instaling, you can follow the following links: