Is there a simple way to make sure a resource isn't included in the release build of my app using the Configuration switch?
It's never used in the release build, but given it's nature I'd prefer to not even include it. Including an image commonly used to represent software bugs seems like store rejection bait.
Clarification: I know how to not use the image in the application. What I want to do is make sure the image isn't even in the .app bundle when I build for the release configuration. I don't want an App Store reviewer browsing the bundle and saying "Hey! A bug icon! How can I get that to show? Since I can't figure it out, there must be some secret functionality."
Worst case, add a Run Script Build Phase to your target:
if [ $BUILD_STYLE = "Release" ]; then
rm "$BUILT_PRODUCTS_DIR/MyApp.app/Contents/Resources/debug.png"
fi