How to create Xcode project from already existing git cmake project? How to create Xcode project from already existing git cmake project? xcode xcode

How to create Xcode project from already existing git cmake project?


Cmake has a generator for XCode. Try:

cmake -G Xcode <dir of CMakeLists.txt>


What I do:

"File"->"New"->"Project..."

Select command line tool:

enter image description here

Fill in some stuff if you'd like:

enter image description here

Run the dummy project:

enter image description here

Click on the project file and "Add files to" your project:

enter image description here

Browse to your pile of source. Expand the options. I tend use "added folders" as "Create Groups":

enter image description here

Go through and prune out the files you don't want:

enter image description here

Build. Likely you'll need to keep removing files or adding them till your project works.