Juri Pakaste has released a new Swift library called provision-info.
provision-info is a Swift package for macOS that parses and shows information about provisioning profile files.
It includes a command line tool and a Swift library, with a possibility of working on iOS as well.
The library relies on Apple's Security framework and offers features to print metadata fields, entitlements, device IDs, and certificates from profile files.