Creating Xcode project from command line

前端 未结 2 1977
长发绾君心
长发绾君心 2021-01-04 00:55

My question is how can I create and Xcode project from the command line. By create I don\'t mean building a project. I mean how can i create a project forlder i.e shift + cm

2条回答
  •  北海茫月
    2021-01-04 01:39

    Cmake will create Xcode projects along with any other type of build file you could desire. It is heavily customizable and can handle multiple targets, dependencies, linking, and any other property you could image. It has a steep learning curve but is a very very powerful tool. We currently use cmake to genererate both the Xcode and visual studio solution from the same code base.

    The simplest example of cmake is $cmake -G "Xcode" ...args... this would create and all all the nessecary files to your project from your args.

    Here is the main page: http://www.cmake.org

提交回复
热议问题