0

I have created a Mac OS app project in Xcode to draw a simple 2D triangle and it works fine.

However, now I want to build it on command line but I am confused on how to do it as the code is in Objective C and it makes calls to METAL which is implemented in C++.

I have worked with gcc and g++ before.

Can someone please direct me to some command line build tools for this project?

jscs
  • 63,694
  • 13
  • 151
  • 195
Anurag
  • 651
  • 4
  • 18

1 Answers1

1

To build Xcode projects from the command line you can use xcodebuild.

xcodebuild builds one or more targets contained in an Xcode project, or builds a scheme contained in an Xcode workspace or Xcode project.

This tool is included in the Xcode command line tools and has a man page (just execute man xcodebuild in Terminal) explaining the basic usage.

Nef10
  • 926
  • 2
  • 16
  • 26