I have installed Xcode and created the Command Line Tool project for "Hello, World!". I can run it from Xcode when I click the little play button. But how can I run this program from a Terminal window? I can't find it anywhere :(
-
Do you want to build from the command line or do you want to run the built binary?– nohillside ♦Jul 17 at 8:27
-
I meant the built binary but I've finally found it, thanks!– CerdJul 17 at 12:44
2 Answers
The command you are after is xcodebuild
which is in the Xcode command line tools.
Apple's documentation for it (albeit archived) is in https://developer.apple.com/library/archive/technotes/tn2339/_index.html
I meant running the built binary and finally found it in the Standard Path which can be found under
Project Settings --> Derived Data
and there it is in
[project name]-[number/letter combo] --> Build --> Products --> Debug