How do I embed a provisioning profile for my MacOS app from the command line

I have a CMake-based Qt app project that generates an app bundle that needs a provisioning profile for PersonalVPN entitlement.

I generated a provisioning profile from the developer portal (DeveloperID distribution) and put the file in the Contents folder of the bundle (renamed it to embedded.provisionprofile).

When I try to launch my app, I get the "Disallowing <bundle id> because no eligible provisioning profiles found" message in the Console app.

If I double-click on the embedded.provisionprofile, install it and then try to launch the app again, it works fine.

So it seem somehow, that the embedded.provisionprofile is not being detected by the system. Is there a command-line approach (analogous to builtin-ProductPackagingUtility) that can embed the profile into the app bundle?

Have scoured these forums and googled a bunch but haven't come up with anything that works for me.
Post not yet marked as solved Up vote post of agapple Down vote post of agapple
1.4k views
  • Hi agapple, i'm having the same issue currently. I'm curious have you ever found a solution to automate the install of the provisionprofile file?

Add a Comment