Xcode 4 terms "Build for testing / Build for running / build for profiling / build for archiving"

harshit2811 picture harshit2811 · Apr 7, 2011 · Viewed 17.4k times · Source

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).

Answer

Codo picture Codo · Apr 7, 2011

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).