Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete user-defined build settings in Xcode 4.3.1

I have created several user-defined build settings in Xcode 4.3.1. I no longer need these settings and want to delete them, but there doesn't seem to be a way to delete them!

I am aware that these are stored in the project settings (project.pbxproj) file located within the xcodeproj file. But I don't want to edit these in a text editor as there are all sorts of repetitions and guids which I don't understand.

Any suggestions on how I can do this within Xcode? (or have they forgotten to add a "delete" button)

like image 661
Rahul Iyer Avatar asked Apr 16 '12 07:04

Rahul Iyer


People also ask

Where are build settings stored 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 is target settings in Xcode?

To see detailed information about a particular setting, select the setting and choose View > Inspectors > Quick Help. Xcode displays a description of the setting, along with its name and value type.


1 Answers

Just figured this out myself: you need to make sure you're at the right scope to be able to delete the setting. If you defined the setting at the project scope, no amount of key-bashing will remove it if you're looking at the target-scope. Remember, targets inherit settings from project scope. That last bit is what I tripped over :)

like image 133
Brian D. Calhoun Avatar answered Sep 19 '22 18:09

Brian D. Calhoun