I am looking for a way to enable the UIFileSharingEnabled flag for only a debug variant - so I can change the contents of the documents folder - but I don't want end users to be doing the same.
I guess i could use a run script to do it, though not sure how to get the active configuration name to the script.
worked it out:
if [ ${CONFIGURATION} = "Debug" ]; then
/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled YES" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
else
/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled NO" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
fi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With