手动修改Info.plist

2019-05-25  本文已影响0人  yxibng
# 使用方式
/usr/libexec/PlistBuddy -c  "<command>" "<file.plist>"

iOS 修改app 版本号和 build 版本号

/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString ${APP_VERSION}" $Plist_Dir/Info.plist
/usr/libexec/PlistBuddy -c "Set CFBundleVersion ${BUILD_NUMBER}" $Plist_Dir/Info.plist

其他示例

Examples:
    Set :CFBundleIdentifier com.apple.plistbuddy
        Sets the CFBundleIdentifier property to com.apple.plistbuddy
    Add :CFBundleGetInfoString string "App version 1.0.1"
        Adds the CFBundleGetInfoString property to the plist
    Add :CFBundleDocumentTypes: dict
        Adds a new item of type dict to the CFBundleDocumentTypes array
    Add :CFBundleDocumentTypes:0 dict
        Adds the new item to the beginning of the array
    Delete :CFBundleDocumentTypes:0 dict
        Deletes the FIRST item in the array
    Delete :CFBundleDocumentTypes
        Deletes the ENTIRE CFBundleDocumentTypes array
上一篇 下一篇

猜你喜欢

热点阅读