使用PlistBuddy工具操作plist文件,通过修改版本号数值实现版本递增
PlistBuddy
PlistBuddy是Mac自带的专门解析plist的小工具。
语法
Command Format:
Help - Prints this information
Exit - Exits the program, changes are not saved to the file
Save - Saves the current changes to the file
Revert - Reloads the last saved version of the file
Clear [<Type>] - Clears out all existing entries, and creates root of Type
Print [<Entry>] - Prints value of Entry. Otherwise, prints file
Set <Entry> <Value> - Sets the value at Entry to Value
Add <Entry> <Type> [<Value