PropertyListEncoder is ignoring .binary outputFormat
问题 I wrote a little sample bit of code to document how to encode Swift objects as property lists, using PropertyListEncoder . The code works, but I wanted to output to a binary property list. (Those are faster and more compact) However, it seems the PropertyListEncoder is ignoring my setting outputFormat = .binary and writing the file as XML anyway: Here is the code (a MacOS command line tool, just because that's a low-overhead way to write some test code: ) import Foundation var array = ["one",