Build iPhone Project in Command Line

Build iPhone Project in Command Line

$ cd {Project Directory}
$ xcodebuild -target "{project_name}" -sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS{ver}.sdk/ -configuration "DEBUG"