tags:

views:

914

answers:

5

i trying to build and compile my xcodeproj in command line and it is work now so is possible to launch the xcodeproject from terminal instead from the xcode

+2  A: 

Are you asking for the command to build from the command-line?

It's just:

xcodebuild

There are lots of options available to pick non-default options:

Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets] [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration] [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>] [<buildsetting>=<value>]... [<buildaction>]...
   xcodebuild [-version [-sdk <sdkfullpath>|<sdkname>]]
   xcodebuild [-showsdks]
   xcodebuild [-find <binary>] [-sdk <sdkfullpath>|<sdkname>]
   xcodebuild [-list]
Stephen Darlington
A: 

if i want the command Build and Go instead jus build

+3  A: 
A: 

xcodebuild -configuration Debug; open /path/to/build/Debug/your.app

BTW You can open any LaunchServices-findable app with a given document just by executing open -a without a path or extension, e.g. open -a Xcode myProject.xcodeproj

cdespinosa
A: 

Any idea how to create a new XCode project from command line...I mean not building an existing project, but create a new project from command line.