0

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?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

10 Comments

It gives error make: *** No rule to make target `new'. Stop.
This is not a shell script. Try osascript -e 'tell application "Xcode" to make new target with properties {name:"My new target"}'.
What i am doing that go to my project path in terminal and write as u mention:"make new target with properties {name:"Test2"}"
Now i am getting execution error: The variable target is not defined. (-2753)
I am doing --> osascript -e 'make new target with properties {name:"Mynewtarget"}'
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.