Is there a way to add .entitlements files to Xcode automatically from Unreal (like Info.plist updates)?

I’m building a plugin for iOS that uses HealthKit, and I’ve set up an XML file to update the Info.plist automatically — this works perfectly.

However, I also need to include a .entitlements file to enable com.apple.developer.healthkit, and currently I have to manually assign it in Xcode every time the project is regenerated.

I’m using in the plugins build.cs:

AdditionalPropertiesForReceipt.Add("Entitlements", "PathToEntitlement");

And while this seems to pass the entitlements during code signing, it doesn’t add them to the Xcode project’s “Code Signing Entitlements” field, so Xcode doesn’t recognize it until I manually reassign it. (I can see that the entitlements appear in the embedded provisioning profile in the .app package) This also causes the app when it is on an iOS device to return an error saying it is missing the com.apple.developer.healthkit entitlement.

Is there any Unreal-native way (from a plugin) to ensure .entitlements are fully integrated into the Xcode project automatically, similar to how Info.plist updates are handled? The Mac entitlements seem to work as when I open Xcode 2 entitlements are added by default. Looking at Unreal’s documentation it appears to be possible. UE Entitlements Docs

Ideally, I’d like the plugin to be drop-in and fully self-contained without needing extra manual steps in Xcode.

Thanks in advance!