Using this framework you can read property lists embedded inside of a running executable as well as those of executables
stored on disk. These types of executables are often Command Line Tools. Built-in support is provided for reading both
embedded info and launchd property lists. Custom property list types can also be specified.
Using this framework you can read property lists embedded inside of a running executable as well as those of executables stored on disk. These types of executables are often Command Line Tools. Built-in support is provided for reading both embedded info and launchd property lists. Custom property list types can also be specified.
To see a runnable sample app using this framework, check out SwiftAuthorizationSample.
Usage
Property lists are returned as
Datainstances. Usually you’ll want to deserialize using one of:ProperyListDecoder‘sdecode(_:from:)to deserialize theDatainto aDecodablePropertyListSerialization‘spropertyList(from:options:format:)to deserialize theDatainto anNSDictionaryExample — Read Internal, Create
DecodableWhen running inside an executable, decode a launchd property list into a custom
Decodablestruct:Example — Read External, Create
NSDictionaryFor an external executable, deserialize an info property list as an
NSDictionary:Example — Create
DecodableUsingBundleVersionDecode an info property list, using
BundleVersionto decode theCFBundleVersionentry: