如何用现有文件创建一个新的Xcode项目? [英] How to create a new Xcode project with existing files?

查看:285
本文介绍了如何用现有文件创建一个新的Xcode项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我最初在超级用户和程序员中都发布了此消息,但我还没有得到任何回复,有人在这里提出了建议,所以我想在这里再问一遍:

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:

我当前正在使用XCode 3.2,并且已经在使用终端和vim处理现有项目.已经存在的文件/文件夹是:

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源文件
  • C头文件
  • makefile
  • 用于自动测试的bash脚本
  • 测试目录
  • git
  • 一个库归档文件,很可能是C目标文件(如果有帮助,其扩展名为.a)

我当前的程序基本上在终端中同步给它作为参数的2个或更多目录,并递归同步它们.我正在尝试使用Xcode,希望它能总体上帮助调试和改善我的工作流程.

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.

编辑
只是为了澄清一下,我实际上想创建一个新的Xcode项目并导入我所有当前的代码,makefile,git repo,测试脚本等,而不是编写代码来做到这一点.

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.

推荐答案

使用命令行工具"模板(选择"C"作为类型)创建一个新项目,然后导入文件.

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

如果您要使用Makefile而不是通过Xcode管理构建过程,则可以使用自定义构建阶段创建一个新目标,该阶段将调用您自己的Makefile.

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.

这篇关于如何用现有文件创建一个新的Xcode项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆