【PlistBuddy】Info.plistの値をコマンドで読み書きする
PlistBuddyを使うと、Info.plistなどのplistの値をコマンドで読み書きできる。-cでコマンドを渡す。
$ /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" Info.plist 1.2.3 $ /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString 1.2.4" Info.plist PlistBuddyは/usr/libexec/にあり、PATHに含まれない。フルパスで実行する。