I used the @abhinav approach, but slightly modified it to fit my project needs. We have two goals: BUT , both of them are used to create separate applications.
Steps
In the file system in the project directory, create a folder structure:
<project_folder>/Settings/debug <project_folder>/Settings/production
In the project, create the following groups:
Settings debug production
Create Settings.bundle , add it to the debug group and save it to the debug folder. (do not add it to any target)
Edit .plist so that you like the page with the widest options (usually Debug collections have more options).
Copy the package from the debug folder to the production folder
Add Settings.bundle from the production folder to the production group in the project (do not add it to any target), so you have this structure

Make sure none Settings.bundle added to any target
Remove installation items from .plist that you do not want to send using the App Store build.
Add Launch Script Phase After Resources Copy Resources
if [ "${CONFIGURATION}" = "Release" ]; then cp -r ${PROJECT_DIR}/Settings/production/Settings.bundle "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app" fi if [ "${CONFIGURATION}" = "Debug" ]; then cp -r ${PROJECT_DIR}/Settings/debug/Settings.bundle "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app" fi
Note. I have two build schemes: Release and Debug. I enclosed the path in quotation marks because my target has a name with spaces.
Yevhen dubinin
source share