It's possible to embed an Info.plist section into an executable file for macOS.
An example is this searchfs tool.
And if you Get Info in Finder for this file, it'll show the correct version info (here: 1.0.2).
How can I conveniently get this info in a macOS app (using ObjC or Swift)? I'd expect that NSWorkspace
would offer such a function but it doesn't seem to.
I don't want to have to scan the file section myself in order to extract the __info_plist
section. Is there a better way?