How to create a new Xcode project with existing files?

天大地大妈咪最大 提交于 2019-12-24 06:51:28

问题


Hey guys I've initially posted this both in superuser as well as programmers but I haven't gotten any replies yet, and someone suggested here, so I thought I'll ask it again here:

I'm currently using XCode 3.2, and I am already working on my existing project using the terminal and vim. Files/folders that already exists are:

  • C source files
  • C header files
  • makefile
  • bash script for automatic testing
  • test directories
  • git
  • a library archive, most probably of C object files (if it helps it has an extension of .a)

My current program basically syncs 2 or more directories given to it as arguments in the terminal and syncs them recursively. I'm trying to use Xcode in hopes that it'll help in debugging and improving my workflow in general.

EDIT
Just to clarify I want to actually create a new Xcode project and import all my current code, makefile, git repo, testing script etc and not write the code to do it.


回答1:


Create a new project with the "Command Line Tool" template (select "C" as the type), and import your files.

If you want to use your Makefile instead of managing the build process via Xcode, you can create a new target with a custom build phase that'll invoke your own Makefile.



来源:https://stackoverflow.com/questions/4087916/how-to-create-a-new-xcode-project-with-existing-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!