学习和理解 Xcode 构建系统 [英] Learning and Understanding the Xcode Build System

查看:19
本文介绍了学习和理解 Xcode 构建系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我对 Xcode 的构建过程很好奇.设置多个目标、如何自动化版本控制以及大致了解系统,以便我可以操纵它来做我想做的事.

Alright, I'm curious about the build process with Xcode. Setting up multiple Targets, how to automate versioning and generally understanding the system so I can manipulate it to do what I want.

有没有人有任何书籍或可以将我指向某处的一些文档,以便我可以弄清楚所有这些?

Does anyone have any books or can point me to some documentation somewhere so that I can figure all of this out?

非常感谢.

另外一件事,如果有人在更改后确实看到了这一点.

Another thing, if anyone actually sees this since changing it.

但是任何人都知道有哪些书会关注 Xcode 4?有 Xcode 3 Unleashed 但我真的很好奇是否有任何关于 Xcode 4 的书籍.

But any books anyone is aware of that will focus on Xcode 4? There's Xcode 3 Unleashed but I'd be real curious if there are any books that focus heavily on Xcode 4.

推荐答案

对于一致的、可重现的、可自动化的构建来说,真正必不可少的一件事是 xcodebuild 命令的知识.遗憾的是,除了手册页(键入 man xcodebuild)之外,我找不到任何官方文档.here 包括使用 xcodebuild 构建和使用 agvtool 进行版本控制.这与 Mac 应用程序的一般构建同样相关.

One thing that is really essential for consistent, reproducible, automatable builds is knowledge of the xcodebuild command. Sadly I can't find any official docs on it apart from the manpage (type man xcodebuild). There's a useful guide to automating iphone builds here that includes building with xcodebuild and versioning with agvtool. This is just as relevant to general building of Mac apps.

通常使用 xcodebuild 构建非常简单:

Generally building with xcodebuild is very simple:

cd project_dir
xcodebuild -project myproject.xcodeproj -configuration Release ARCHS="x86_64 i386" build

一旦您可以从这样的脚本进行构建,就可以很容易地插入自动构建系统.

Once you can build from a script like this it's very easy to slot into an automated build system.

这篇关于学习和理解 Xcode 构建系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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