Xcode4 target labelled as missing, but cannot delete it

targetsxcode4

Xcode4.2 Edit Schemes dialogue

I want to delete this red-marked target, but am unable to.

The "minus" button in the dialogue remains greyed-out, it doesn't respond to backspace or delete keys and right-clicking just brings up help options. I can drag the missing-red-marked target above or below the working black target, but it doesn't let me delete it.

This missing red target only seems to appear in this edit schemes dialogue.

In my main project/target window, I just have the one good target there.

Any ideas how to clean this up and delete this missing target?

Best Answer

What worked for me was to designate another executable (or none) in the existing scheme's various actions (run, test, etc.). It's the fact it's in use in the scheme's actions that prevents its deletion. I discovered this during my research for Mastering Xcode 4 (yes, shameless plug). :-)

Related Topic