UIFileSharingEnabled on debug variant only

Solutions Collect From Internet About “UIFileSharingEnabled on debug variant only”

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