How to delete user-defined build settings in Xcode 4.3.1

Rahul Iyer picture Rahul Iyer · Apr 16, 2012 · Viewed 20k times · Source

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)

Answer

Brian D. Calhoun picture Brian D. Calhoun · May 17, 2012

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