Xcode 4 terms “Build for testing / Build for runni

2019-03-17 08:41发布

问题:

What do the following actions in Xcode 4 do?

  • Build for Testing
  • Build for Running
  • Build for Profiling
  • Build for Archiving

I'm not sure when to use each of these (or whether to use any of them at all).

回答1:

Running is for running your app (on the Mac for Mac OS X, in the simulator or on the device for iOS).

Profiling is for running your app with Instruments (for finding memory leaks, bottlenecks etc.).

Testing is for running unit tests.

Archiving is building a distributable package of you app (incl. Ad-hoc iPhone distributions and upload to the App Store).