A library to handle Apple Property List format in binary or XML
  • C 70.7%
  • C++ 9.8%
  • M4 8.9%
  • Cython 5.7%
  • Shell 3.4%
  • Other 1.5%
Find a file
naturecodevoid 258d3c24aa
Add me and nythepegasus as conflict reviewers
Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com>
2023-10-21 17:27:12 -07:00
.github Add me and nythepegasus as conflict reviewers 2023-10-21 17:27:12 -07:00
cython Rename PLIST_UINT to PLIST_INT and add plist_new_int() and plist_get_int_val() 2023-01-16 04:25:52 +01:00
docs docs: Updated manpage 2023-04-21 13:50:50 +02:00
fuzz oplist: Fix another OOB read 2023-01-17 01:26:58 +01:00
include Add an explicit PLIST_FORMAT_NONE value 2023-05-20 17:32:34 +02:00
libcnary libcnary: Updated typedefs of node_t and node_list_t to contain pointer 2023-02-06 18:28:28 +01:00
m4 Update deprecated autoconf macros and update m4 files 2021-09-11 01:38:44 +02:00
src Fix compilation in SideStore 2023-10-21 17:22:53 -07:00
test test: use unique output file names across tests 2023-10-03 10:41:32 +01:00
tools plistutil: Add -p command line switch to print plist in human-readable format 2023-04-21 13:48:29 +02:00
.gitattributes [github-actions] Windows: Prevent -dirty suffix in version string by disabling CRLF conversion 2022-02-10 01:26:01 +01:00
.gitignore Update .gitignore 2023-04-21 12:40:40 +02:00
AUTHORS Updated AUTHORS from commit history 2017-04-20 15:26:17 +02:00
autogen.sh Apply changes towards a project wide common "autogen.sh" file 2020-06-09 03:00:52 +02:00
configure.ac autoconf: Remove unused function checks and fix constructor/destructor attribute check 2023-05-19 20:47:22 +02:00
COPYING Added documentation and licensing information. 2008-07-30 23:50:39 -07:00
COPYING.LESSER Added documentation and licensing information. 2008-07-30 23:50:39 -07:00
doxygen.cfg.in Update doxygen config and document undocumented macros 2023-05-05 02:43:40 +02:00
git-version-gen git-version-gen: Prevent multiple lines of output 2023-04-24 12:23:49 +02:00
Makefile.am autoconf: Allow disabling build of test suite 2023-04-24 14:16:31 +02:00
NEWS Updated NEWS for release 2023-04-21 16:18:57 +02:00
README.md Updated README.md with CodeQL badge 2023-01-16 10:08:52 +01:00

libplist

A small portable C library to handle Apple Property List files in binary, XML, JSON, or OpenStep format.

Features

The project provides an interface to read and write plist files in binary, XML, JSON, or OpenStep format alongside a command-line utility named plistutil.

Some key features are:

  • Formats: Supports binary, XML, JSON, and OpenStep format
  • Utility: Provides a plistutil utility for the command-line
  • Python: Provides Cython based bindings for Python
  • Tested: Uses fuzzing and data compliance tests
  • Efficient: Lean library with performance and resources in mind

Installation / Getting started

Debian / Ubuntu Linux

First install all required dependencies and build tools:

sudo apt-get install \
	build-essential \
	checkinstall \
	git \
	autoconf \
	automake \
	libtool-bin

If you want to optionally build the documentation or Python bindings use:

sudo apt-get install \
	doxygen \
	cython

Then clone the actual project repository:

git clone https://github.com/libimobiledevice/libplist.git
cd libplist

Now you can build and install it:

./autogen.sh
make
sudo make install

Usage

Then simply run:

plistutil -i foobar.plist -o output.plist

This converts the foobar.plist file to the opposite format, e.g. binary to XML or vice versa, and outputs it to the output.plist file.

To convert to a specific format - and also to convert from JSON or OpenStep format - use the -f command line switch:

plistutil -i input.plist -f json

This will convert input.plist, regardless of the input format, to JSON. The code auto-detects the input format and parses it accordingly.

Please consult the usage information or manual page for a full documentation of available command line options:

plistutil --help
man plistutil

Contributing

We welcome contributions from anyone and are grateful for every pull request!

If you'd like to contribute, please fork the master branch, change, commit and send a pull request for review. Once approved it can be merged into the main code base.

If you plan to contribute larger changes or a major refactoring, please create a ticket first to discuss the idea upfront to ensure less effort for everyone.

Please make sure your contribution adheres to:

  • Try to follow the code style of the project
  • Commit messages should describe the change well without being too short
  • Try to split larger changes into individual commits of a common domain
  • Use your real name and a valid email address for your commits

We are still working on the guidelines so bear with us!

License

This project is licensed under the GNU Lesser General Public License v2.1, also included in the repository in the COPYING file.

Credits

Apple, iPhone, iPad, iPod, iPod Touch, Apple TV, Apple Watch, Mac, iOS, iPadOS, tvOS, watchOS, and macOS are trademarks of Apple Inc.

This project is an independent software library and has not been authorized, sponsored, or otherwise approved by Apple Inc.

README Updated on: 2023-01-08