gpt4 book ai didi

ios - Xcode - 无法在脚本中使用 PlistBuddy 修改 plist

转载 作者:行者123 更新时间:2023-11-29 05:37:17 25 4
gpt4 key购买 nike

我想使用脚本将 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"

控制台打印:

请帮忙

最佳答案

解决方案:删除“bool”

/usr/libexec/PlistBuddy -c "Set :UIFileSharingEnabled true" "$BASE_PLIST"

关于ios - Xcode - 无法在脚本中使用 PlistBuddy 修改 plist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56922837/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com