PlistBuddy用法举例

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $Info.plist

File Doesn't Exist, Will Create: .plist

Print: Entry, "CFBundleShortVersionString", Does Not Exist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist

1.0

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString 1.1" Info.plist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist

1.1

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleDisplayName" Info.plist

Print: Entry, "CFBundleDisplayName", Does Not Exist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName hundsun" Info.plist

Set: Entry, ":CFBundleDisplayName", Does Not Exist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleDisplayName hundsun" Info.plist

Unrecognized Type: hundsun

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleDisplayName string hundsun" Info.plist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleDisplayName" Info.plist

hundsun

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleDisplayName string 北京协和医院" Info.plist

Add: ":CFBundleDisplayName" Entry Already Exists

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleName string 北京协和医院" Info.plist

Add: ":CFBundleName" Entry Already Exists

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleExecutable string 北京协和医院" Info.plist

Add: ":CFBundleExecutable" Entry Already Exists

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Add :CFBundleGetInfoHTML string 北京协和医院" Info.plist

luohsdeiMac:ipa批量打包shell脚本 luohs$ /usr/libexec/PlistBuddy -c "Print CFBundleGetInfoHTML" Info.plist

北京协和医院

luohsdeiMac:ipa批量打包shell脚本 luohs$ 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值