I use this tutorial to create a simple set of settings in my application. The thing is, I want to completely hide the settings in the release version, and I cannot find a way to do this. I read this question , but itβs still not clear to me.
Thank you in advance
I managed to accomplish this by removing the Settings.bundle parameter from the target and adding this script to build the phase:
if [ ${CONFIGURATION} == "Debug" ]; then cp -r ${PROJECT_DIR}/HotelZilla/Classes/Settings/Settings.bundle ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app fi
But still a problem. If I uninstall the application and run it in Release Scheme mode, the preset will not appear. Then I go into Debug Scheme and rebuild, the settings appear, but if I switch to Release again, the settings are still there, so it seems that if I add the "Install to Release application" application, I can never remove the package again. Is it correct?
source share