DiscordKit Guide
GitHub Repository
  • 👋Welcome
  • 🚀Getting Started
    • Creating a Project
      • Creating a bot using a SPM project (Recommended)
      • Creating a bot using an Xcode Project
    • Installation
    • Example Project
  • ðŸĪ–Creating a Bot
    • Getting off the Ground
    • Logging In
    • Registering Commands
    • Responding to Commands
    • Adding Command Options
    • Deploying on Linux
  • ðŸŠĶLegacy
    • Message Commands
  • âœĻEnhancements
    • Logging
  • ðŸ“ĶNitty-gritty
    • What's in the box?
    • Gateway
    • Event Dispatching
Powered by GitBook
On this page
  • Prerequisites
  • Creating a Swift CLI App Project
  • Follow Along
  1. Getting Started
  2. Creating a Project

Creating a bot using an Xcode Project

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

PreviousCreating a bot using a SPM project (Recommended)NextInstallation

Last updated 2 years ago

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.

🚀
GitHub - SwiftcordApp/DiscordKitGettingStartedGitHub
Well, the project was literally empty after this step so a branch was kinda redundant
Welcome to Xcode!
Creating a new project - this never gets old
Logo