美文网首页
手动修改Info.plist

手动修改Info.plist

作者: yxibng | 来源:发表于2019-05-25 23:24 被阅读0次
# 使用方式
/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

相关文章

网友评论

      本文标题:手动修改Info.plist

      本文链接:https://www.haomeiwen.com/subject/tsyttctx.html