Niv
Niv

Reputation: 2312

Using Command line to add files to xcode project

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?

Upvotes: 2

Views: 1739

Answers (2)

ikrabbe
ikrabbe

Reputation: 1929

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.

Upvotes: 0

Segev
Segev

Reputation: 19303

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 .....

Upvotes: 1

Related Questions