2

I am trying to write a bash script that downloads a bunch of classes from the internet, inserts them into an existing (or maybe not?) xcode project and compiles them using xcodebuild into a static library.

However, I could not find a way to add classes to the project via command line, but only by gui.

Is there any way to do so?

In addition, is there any way to create an xcode project via the command line?

2 Answers 2

1

You should read about cocoapods.

Regarding your second question about creating a project via the command line, check this link: cmake

If I remember correctly the terminal command should be something like cmake -G Xcode .....

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

1 Comment

Thanks for the cmake :) I've read about cocoapods, however, this script needs to be portable, and thus cannot depend on installing any software on the local machine.
0

An old problem and I haven't found a valid solution, but actually, with a bit knowledge from the community, it wasn't that hard to solve. I published my results in the github project XCodeControl.

You need a basic xcode project created by xcode though. It should be possible to create an empty xcode project pattern and copy+modify that to create a new project.

Comments

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.