Format:Property list (binary bplist00)
| Platforms | Platform:macOS, Platform:iOS |
|---|---|
| Magic | 62 70 6C 69 73 74 30 30 ("bplist00") |
| Extensions | .plist, .mobileprovision (CMS wrapper) |
| Endianness | big-endian |
| On this wiki | Facts · Code · Notes · Topics |
Apple property list files (Info.plist, preferences, provisioning data): XML text or the binary form that starts with "bplist00", an object table with a 32-byte trailer, used throughout macOS and iOS bundles.
Forms
XML (<plist version="1.0">), binary (bplist00) and the old NeXT ASCII form. Shipped iOS apps usually have a binary Info.plist; embedded.mobileprovision is a CMS (PKCS#7) signature around an XML plist.
Binary layout
8-byte header bplist00; objects; offset table (one offset per object, each offset_size bytes); the last 32 bytes are the trailer: 6 unused bytes, uint8 offset_size, uint8 ref_size, uint64 num_objects, uint64 top_object, uint64 offset_table_offset (all big-endian). Reading starts at the trailer. Object markers (high nibble type, low nibble size; size nibble 0xF means a following integer object gives the size): 0x00 null, 0x08 false, 0x09 true, 0x1n integer of 2^n bytes, 0x23 real (double), 0x33 date (double seconds since 2001-01-01, not 1970), 0x4n data, 0x5n ASCII string, 0x6n UTF-16BE string (n counts code units), 0x8n UID, 0xAn array of object refs, 0xDn dictionary (n key refs then n value refs). Refs are indexes into the object table, ref_size bytes each.
Tools
Python plistlib reads and writes both forms; plutil -convert xml1 on macOS.
A UID object (0x8n) is how Format:NSKeyedArchiver archive files reference objects; keyed archives, Format:NIBArchive-less old nibs and the CARGLOBALS block of Format:Assets.car (compiled asset catalog) are plists.