Alternatively, just do not include the parameter set in the βCopy package resourcesβ and add the script build phase to enable it only for certain configurations.
A script is executed here, which also updates the version and embeds it in the settings
if [ ${CONFIGURATION} == "Debug" ] ; then echo "Copying settings bundle..." version=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$SRCROOT/Blah/Supporting Files/Info.plist") build=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$SRCROOT/Blah/Supporting Files/Info.plist") cp -r "${PROJECT_DIR}/Blah/Supporting Files/Settings.bundle" ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app echo "Updating settings bundle version to ${version}b${build}" /usr/libexec/PlistBuddy "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Settings.bundle/Root.plist" -c "Set :PreferenceSpecifiers:17 :DefaultValue $version($build)" fi
make sure you change the path of Blah/Supporting Files to what you really
iwasrobbed
source share