我想使用脚本将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"控制台打印:

请帮帮忙
发布于 2019-07-07 22:09:53
Solution:删除"bool“
/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled true" "$BASE_PLIST"https://stackoverflow.com/questions/56922837
复制相似问题