Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add configurations to Xcode?

There are no other way, I search a lot. In XCode 3 this is easy, but now..

In the screen above, I have the Build Configuration, so I can chose if I want:

  • Debug
  • Release

the screen

This 2 kind of config, have their own config in "Build Settings" tabs (in targets config). To create I third one, the Distribution, reading here, it show this image in XCode 3 boring xcode 3

Where I can do the same in XCode 4????

edit-> Only create a new Schema didn't work, like this is a config in "Build Settings" tag of Targets. I can chose a config for "Debug" and "Release", but, and for I third one?

enter image description here

like image 640
Rodrigo Avatar asked Jun 02 '11 18:06

Rodrigo


People also ask

Where is build configuration in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.

What are configurations in Xcode?

Xcode applies settings from a build configuration file before the corresponding settings from the project's or target's Build Settings tab. For example, if you provide a build configuration file for your target, Xcode applies the project settings, then the build configuration settings, then the target settings.

How do I save build settings in Xcode?

You will have to copy the build settings from your xcodeproj file. Open your xcodeproj file in a text editor and copy: buildSettings = { ... } Into your xcconfig file.


2 Answers

Have a look at the project settings. There is a + button that you can use to add to configurations here.

enter image description here

like image 110
Abizern Avatar answered Sep 22 '22 22:09

Abizern


You don't need it.

Make sure you check the following list before you Archive:

  • In Edit Scheme: Select Release as Build Configuration for Archive,

  • In Project Build Setting: Set Entitlements.plist and your Distribution code signing for Release scheme,

  • In Entitlements.plist: Set No to ‘can be debugged’.

Then archive and share with your ad-hoc provisioning or submit with distribution provisioning.

Hope this is a comprehensive checklist.

EDIT:

to duplicate an existing configuration: enter image description here

like image 40
ZhangChn Avatar answered Sep 25 '22 22:09

ZhangChn