1

我想使用脚本将 UIFileSharingEnabled 键设置为 true。脚本代码:

echo "set file sharing to true"

BASE_PLIST="${SRCROOT}/Customization/Info.plist"
/usr/libexec/PlistBuddy -c "Print :UIFileSharingEnabled" "$BASE_PLIST"
/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled bool true" "$BASE_PLIST"
/usr/libexec/PlistBuddy -c "Print :UIFileSharingEnabled" "$BASE_PLIST"

控制台打印:

请帮忙

4

1 回答 1

1

解决方案:删除“布尔”

/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled true" "$BASE_PLIST"
于 2019-07-07T14:09:52.743 回答