Build on macOS¶
How to building with Xcode on MacOS 64-bit.
MacOS Tools Required¶
- Xcode
- CMake
- Git
- gettext
- libtool
- automake
- autoconf
- texinfo
Tip
You can install most of them by running:
Important
If you've recently upgraded Xcode, be sure to open Xcode at least once and install the required macOS build support.
Point the command-line tools at your Xcode installation and accept the license:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept # if you haven't accepted it yet
MacOS Instructions¶
- Clone the repository:
- Build the application:
[!TIP] If you're on the latest macOS and Xcode, set the deployment target explicitly so the build targets a supported SDK, e.g.:
- Open the application:
Debugging in Xcode¶
To build and debug directly in Xcode:
- Open the Xcode project:
- In the menu bar:
- Product > Scheme > OrcaSlicer
- Product > Scheme > Edit Scheme...
- Under Run > Info, set Build Configuration to
RelWithDebInfo - Under Run > Options, uncheck Allow debugging when browsing versions
- Under Run > Info, set Build Configuration to
- Product > Run