I have read about some document about creating build via Terminal, but my requirement is that I have need to create target via terminal using script.
Can anyone have idea on that?
You can do this with AppleScript:
make new target with properties {name:"My new target"}
but this is just the beginning. Drag the Xcode.app onto the ScriptEditor to get a description of the possible commands.
osascript -e 'tell application "Xcode" to make new target with properties {name:"My new target"}'.