Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4: deleting items in Build Settings

Tags:

In XCode 4.0 there's a newly designed Build Settings page. My problem is that I can't see how to remove a setting once I've specified it.

Example: I've changed "Versioning System" to "Apple Generic" at the target level. Afterwards I realised I should set it at the project level, and so I want to delete the target level setting. However, there's no way I can see to remove the setting -- you click on it and there's two options, neither of which is the default "not specified" empty setting. Hitting the delete key on the keyboard nothing.

The same goes for fields that accept text -- if I try to delete a setting by just deleting all the text set, it still shows that field in green, but with no text in it, and regards it as the presence of a setting.

like image 497
occulus Avatar asked Mar 18 '11 10:03

occulus


People also ask

How do I change my build settings 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.

Where are Xcode files stored?

It should by located in: ~/Library/Developer/Xcode/DerivedData .


1 Answers

Delete works but you have to take care to have the proper item selected on the left hand side of the editor area.

If you want to default a target setting to the project or "Mac Os Default" value, you first need to select the target on the left hand side of the editor area, go to build settings and you will be able to remove the target setting using the delete key. You will not be able to remove project settings from here though.

If you want to default a project setting to the "Mac Os Default" value, you first need to select the project on the left hand side of the editor area, go to build settings and only then you will be able to erase the setting of the project using the delete key.

I'm not sure if that is a bug of XCode or not. The truth is that when you are looking to the settings of a target and you hit delete, Xcode has no way to know if you want to delete a project or a target setting, because there is not way to select a column, but only rows... and it seems logical that it deletes only a target one. So it is probably the normal behavior.

like image 110
Alex Reche Martinez Avatar answered Oct 14 '22 15:10

Alex Reche Martinez