Question

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?

Was it helpful?

Solution

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

OTHER TIPS

Try creating a brand new scheme (via "New Scheme" or "Manage Schemes...") and start using that.

Once your new scheme is building properly and is set as a default, you should be able to delete the old scheme with the bogus "missing" target.

The real issue here is explained by Joar Wingfors in the Xcode-users mailing list (emphasis mine):

In the scheme sheet you cannot delete things from one tab that some other tab depend on. In this case you probably have to delete the target from the test tab before you can delete it from the build tab. Or something along those lines.

I had the exact same problem. Solved by closing the xCode and externally editing the schema file to delete the bundlableResource section for the missing library. Not the safest of all methods but it works.

First delete all schemes and then generate the schemes again. Work for me .

What Joshua said, a bit tailored. Go through all various actions and change the missing executable to an existing one.

In your case, go to 'Profile' and switch to the new app. Same if you encounter this in 'Test' tab.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top