Creating a bot using an Xcode Project

Are you on macOS and want to develop with Xcode? These instructions are for you!

Prerequisites

  • Latest version of Xcode (14.1 as of writing)

Creating a Swift CLI App Project

  1. Open Xcode. You'll be greeted with the following window if no project was open the last time Xcode was closed.

  2. Click on the Create a new Xcode project action

  3. In the window that appears, double-click on the Command Line Tool template under the macOS tab

  4. Choose a name for your project, and click Next I'd recommend choosing a name following the UpperCamelCase convention

  5. Choose a place to store your project, preferably in a folder dedicated to Xcode projects, and check the Create Git repository on my Mac option if you'd like to place your project under source control

  6. Finally, press the Create button, and your newly-created Xcode project should open in a few moments!

Follow Along

Want to see how your project should look after each page? I've created a GitHub repository containing an Xcode project that I made following these instructions. Below each page is a link to a specific branch in the repository, containing a snapshot of how my files looked after each step.

Last updated