I'm using this tutorial to create a simple Settings Bundle in my app. The thing is that I want to hide the settings entirely in the release version and I cannot find a way to do it. I've read this question but it's still not clear to me.
Thanks in advance
I manage to accomplish this removing the Settings.bundle from target and adding this script to Build Phase:
if [ ${CONFIGURATION} == "Debug" ]; then
cp -r ${PROJECT_DIR}/HotelZilla/Classes/Settings/Settings.bundle ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
fi
But there's still a problem. If I remove the app then launch it in Release Scheme mode, the settings bundle doesn't appear. Then, I change into Debug Scheme and rebuild, the settings appear but, if then I switch again to Release, the settings are still there, so it seems that if I add a Setting to the Release app I can never delete the bundle again. Is that right?