如何使用现有文件创建新的 Xcode 项目?

发布于 2024-09-30 14:33:00 字数 464 浏览 3 评论 0原文

嘿伙计们,我最初在超级用户和程序员中都发布了这个问题,但我还没有收到任何回复,并且有人在这里建议,所以我想我会在这里再问一次:

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

  • C 源文件
  • C 头文件
  • makefile
  • 用于自动测试的
  • bash脚本 测试目录
  • git
  • 库存档,最有可能是 C 对象文件(如果有帮助,它的扩展名为 .a)

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

编辑
只是为了澄清,我想实际创建一个新的 Xcode 项目并导入所有当前代码、makefile、git repo、测试脚本等,而不是编写代码来执行此操作。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扛起拖把扫天下 2024-10-07 14:33:00

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

如果您想使用 Makefile 而不是通过 Xcode 管理构建过程,您可以使用以下命令创建一个新目标:自定义构建阶段将调用您自己的 Makefile。

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文