Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jul 2017
    Posts
    1

    Default Binary PLIST - convert to XML and compare

    Quote Originally Posted by Aaron View Post
    Hello,

    As a binary file, we would need to run an external conversion to open it as plain text. We have other, similar formats for binary files for download here, but not plist:
    http://www.scootersoftware.com/downl...kb_moreformats

    If you are familiar with any command line utility that can take a plist input and output the xml you wish to compare, we can incorporate its use. We have an example of that here:
    http://www.scootersoftware.com/suppo...rnalconversion
    Hey guys, to finish this thread here's a helpful conversion to XML using the built-in plutil tool on Mac.

    BC4
    General - Mask:
    "*.plist"

    Description:
    "Compare PLIST files"

    Conversion - Loading:
    Code:
    plutil -convert xml1 %s -o %t
    Disable Editing: leave unchecked
    Saving: leave this blank - We can leave PLIST in XML format, it's the best common denominator.
    Encoding: UTF-8
    Misc - Tab stop: 4

    The rest are default.

    I tried JSON format, however many tools do not recognize JSON encoded PLIST files so conversion to JSON is a 1-way street. However all tools recognize and load XML format inside a .PLIST document, so it's best to convert, compare, and save any changes as XML.

    Hope this is helpful for many other Xcode developers out there!

    Cheers!
    - Aaron
    Steampunk Digital

  2. #12
    Join Date
    Oct 2011
    Posts
    37

    Default

    Quote Originally Posted by otri View Post
    Hey guys, to finish this thread here's a helpful conversion to XML using the built-in plutil tool on Mac.

    BC4
    General - Mask:
    "*.plist"

    Description:
    "Compare PLIST files"

    Conversion - Loading:
    Code:
    plutil -convert xml1 %s -o %t
    Disable Editing: leave unchecked
    Saving: leave this blank - We can leave PLIST in XML format, it's the best common denominator.
    Encoding: UTF-8
    Misc - Tab stop: 4

    The rest are default.

    I tried JSON format, however many tools do not recognize JSON encoded PLIST files so conversion to JSON is a 1-way street. However all tools recognize and load XML format inside a .PLIST document, so it's best to convert, compare, and save any changes as XML.

    Hope this is helpful for many other Xcode developers out there!

    Cheers!
    - Aaron
    Steampunk Digital
    Thanks for sharing that and your link is very interesting Steampunk Digital .. Nice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •