Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 994
harshit2811 Avatar asked Apr 07 '11 12:04

harshit2811


People also ask

What is build for profiling in Xcode?

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

What is build for testing Xcode?

Description. The Step runs Xcode's xcodebuild command with the build-for-testing option. This builds your app and associated tests so that you can, for example, upload it to a third-party testing service to run your tests on a real device.


1 Answers

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

like image 99
Codo Avatar answered Sep 28 '22 08:09

Codo