How to choose which Xcode 4 configuration configuration to use when creating for my device?

Xcode 3 suggested choosing a build configuration before assembling.

In Xcode 4, all I have is:

RUN [Test | Profile | Analysis], STOP, [AppName> My iPhone]

When you press and hold the large drop-down button containing the application name, there are only the following options:

  • My device
  • iPad 4.3 Simulator
  • iPhone 4.3 Simulator
  • iPad 5.0 Simulator
  • iPhone 5.0 Simulator

When developing / debugging (at least intending to do this), Xcode 4 issues warnings that it was unable to verify the code. However, I have codes that are only valid for configuring the App Store distribution. Before configuring this distribution in the schematic editor for Archive, there were no problems. Therefore, I assume that Xcode 4 still uses my distribution for normal development.

How can I tell Xcode 4 to use my "Debug" configuration when creating? Probably I should choose a Scheme. But, as you can see in the drop-down list above, there is no way to select it when creating.

+4
source share
2 answers

Edit your startup / build scheme;

enter image description here

Make sure that the RUN scheme is currently selected and select the appropriate configuration;

enter image description here

+7
source

Apparently, "build" is short for "build for run". The configuration for Run is used for the Build task, so set the configuration in the Run task.

+1
source

Source: https://habr.com/ru/post/1385031/


All Articles