Skip to content

Build on MacOS with XCode for MacOS

Marcus Hudritsch edited this page Jun 24, 2020 · 5 revisions
  • Clone the SLProject GIT repository into a directory of your choice
  • Install the latest CMake. You need at least CMake Version 3.3.
  • Create a build folder name e.g. build-Mac64-XCode in the SLProject root folder.
    • Open a terminal and go into the build directory.
    • Type cmake -G Xcode .." to build the project files for the Apple XCode IDE. With cmake -G you get all possible other build systems that you could generate the project files for.
  • Double click the generated SLProject.xcodeproj project file to open the XCode IDE.
  • Press Cmd-B to build the ALL_BUILD project. It should build all projects without error.
  • To run an application you must first set it as the startup program: XcodeStartApplication
  • Press the Run button to start the application.
Clone this wiki locally