zoukankan      html  css  js  c++  java
  • 用PlistBuddy修改Plist文件

    $ plistbuddy -h

    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>] - Adds Entry to the plist, with value Value

        Copy <EntrySrc> <EntryDst> - Copies the EntrySrc property to EntryDst

        Delete <Entry> - Deletes Entry from the plist

        Merge <file.plist> [<Entry>] - Adds the contents of file.plist to Entry

        Import <Entry> <file> - Creates or sets Entry the contents of file

    Entry Format:

        Entries consist of property key names delimited by colons.  Array items

        are specified by a zero-based integer index.  Examples:

            :CFBundleShortVersionString

            :CFBundleDocumentTypes:2:CFBundleTypeExtensions

    Types:

        string

        array

        dict

        bool

        real

        integer

        date

        data

    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

  • 相关阅读:
    CAN Timing Sample Point
    宋体汉字字号和点阵大小对应关系
    有趣的心理测试——借船过河
    有源蜂鸣器与无源蜂鸣器的区别(转)
    VAG DMA protocol
    STM32 USB CAN 学习笔记
    STM32 CANBus RAM Layout
    LPC43XX JTAG Scan Chain
    Multiplexing SDIO Devices Using MAX II or CoolRunner-II CPLD
    LPC43xx SGPIO DMA and Interrupts
  • 原文地址:https://www.cnblogs.com/sytfyf/p/4521581.html
Copyright © 2011-2022 走看看