Xcode 4 术语“用于测试的构建/用于运行的构建/用于分析的构建/用于归档的构建"
问题描述:
Xcode 4 中的以下操作有什么作用?
What do the following actions in Xcode 4 do?
- 为测试而构建
- 为运行而构建
- 为分析而构建
- 为归档而构建
我不确定何时使用其中的每一个(或者是否完全使用它们中的任何一个).
I'm not sure when to use each of these (or whether to use any of them at all).
答
Running 用于运行您的应用程序(在 Mac OS X 上,在模拟器中或在 iOS 设备上).
Running is for running your app (on the Mac for Mac OS X, in the simulator or on the device for iOS).
分析用于使用 Instruments 运行您的应用(用于查找内存泄漏、瓶颈等).
Profiling is for running your app with Instruments (for finding memory leaks, bottlenecks etc.).
测试用于运行单元测试.
归档正在构建您应用的可分发包(包括临时 iPhone 分发和上传到 App Store).
Archiving is building a distributable package of you app (incl. Ad-hoc iPhone distributions and upload to the App Store).