Building PyTorch apps on iOS
In this section, we will create an iOS app that allows you to perform handwritten digit classification on camera-captured images of handwritten digits. We will reuse the mobile-optimized MNIST model from the Android app development section. All code for this section is available on GitHub [11].
Setting up the iOS development environment
To build iOS apps, you need to download Xcode [12] on your MacBook. Xcode is an IDE created by Apple for developing software on iOS (and also on macOS, iPadOS, watchOS, and tvOS). It is the primary tool used by developers to create applications and software for Appleās various platforms.
Note
You will need Xcode version 11 or higher to build this app. Xcode is the IDE to build iOS apps. You must have a MacBook to build iOS apps.
Before we open Xcode, from the command line, we need to first set the current working directory to the iOS/HelloWorld
folder [13]. From this directory, we...