Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to automatically generate Xcode projects?

Tags:

xcode

scons

Simple question. Are there any tools for generating Xcode projects from the command line? We use SCons to build our cross-platform application, but that doesn't support intrinsic Xcode project generation. We'd like to avoid creating the project manually, since this would involve maintaining multiple file lists.

like image 455
Nick Bolton Avatar asked Jul 11 '09 16:07

Nick Bolton


4 Answers

Look at CMake. You can generate XCode projects from it automatically. I found a previous StackOverflow question about its usage here. To get it to generate an XCode project, you use it as such:

CMake -G xcode
like image 75
Jared Oberhaus Avatar answered Nov 19 '22 09:11

Jared Oberhaus


You can use premake (http://industriousone.com/premake) to generate Xcode projects. It can also generate Visual Studio projects.

like image 31
Mircea Ispas Avatar answered Nov 19 '22 10:11

Mircea Ispas


For the benefit of anyone who lands on this question, I’ve actually just pushed an Xcode project file generator for SCons up to Bitbucket.

like image 2
al45tair Avatar answered Nov 19 '22 09:11

al45tair


I think that your question should be "Is there a way to generate an XCode project from a SCons one?". I suppose, by your asking and by reading the others, that the answer is 'no'.

SCons people should know it better. I think they will be happy if you contribute a SCons Xcode project generator.

In the meantime you may choose to switch to CMake or to create your XCode project by hand that, given a good source tree organization, may be the best pragmatic solution.

like image 1
IlDan Avatar answered Nov 19 '22 09:11

IlDan