-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added an xcode page for osx (#1030)
- Loading branch information
1 parent
4da4f45
commit d13287d
Showing
6 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\page build-a-bot-xcode Building a Discord Bot using Xcode (OSX) | ||
|
||
\warning This tutorial expects you to have installed D++ via homebrew. If you haven't, please visit \ref install-brew. | ||
|
||
To create a bot with Xcode, follow the steps below to create a *working skeleton project you can build upon*. | ||
|
||
\note Since the brew package for D++ only supports C++17, you can't use coro with this project. If you wish to use coro, you need to \ref buildosx "build from source". If you do build from source, look to replace the include and library paths in this project to `/usr/local/include` and `/usr/local/lib`. | ||
|
||
1. Make sure you have Xcode downloaded, along with the developer command tools (for AppleClang). | ||
2. Clone the [template project](https://github.com/Jaskowicz1/mac-bot-template/). **Make sure you download the entire project and not just the .cpp file.** | ||
3. Open Xcode, hit "Open Existing Project" or "File"->"Open", navigate to the template folder and open the .xcodeproj file. You can also double click the file in Finder. | ||
4. Replace "add your token here" with your bot's token in the "main" file. | ||
\image html xcode_token.png | ||
5. Click the run button to compile and run your bot! | ||
\image html xcode_run.png | ||
6. Observe the output and watch your bot run! You may get warnings in this stage and that's okay! | ||
\image html xcode_output.png | ||
|
||
## Troubleshooting | ||
|
||
- Stuck? You can find us on the [official Discord server](https://discord.gg/dpp) - ask away! We don't bite! |