iDev: Build and Run an xcode project via terminal (Command Line Tool)

Solution's point...

Hello Friends,

Today I post a very simple but important technique to build the application using terminal.

How to build and create .app file from out side Xcode i.e. with/using terminal.

Procedure  :

1-> Open Terminal (Go to Spotlight and search terminal)

2-> Go to specified project folder using cd command , Suppose you create a iPhone application project , project named : SampleApp , which is located in your Desktop.

So you can write in the terminal like this :

MacMini: Admin$ cd Desktop\SampleApp

3-> After than you can write this command on the terminal

xcodebuild -target ‘AppName.xcodeproj’ -scheme ‘AppName’ -configuration “Debug/Release” -sdk iphoneos6.0/5.0/4.0 -arch “armv7 armv7s” CONFIGURATION_BUILD_DIR=’BuildDirectoryName‘ ONLY_ACTIVE_ARCH=NO/YES

For our SampleApp example you can write on the terminal as:

MacMini:SampleApp Admin$ xcodebuild -target ‘SampleApp.xcodeproj’ -scheme ‘SampleApp‘ -configuration “Debug” -sdk iphoneos6.0 -arch “armv7…

View original post 41 more words