UIFileSharingEnabled on debug variant only

前端 未结 1 860
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 18:43

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

相关标签:
1条回答
  • 2021-01-05 19:37

    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
    
    0 讨论(0)
提交回复
热议问题