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

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437>\
**Category:** Mobile\
**Tags:** xcode-ios, unreal-engine, iOS, question\
**Created:** [April 8, 2025, 11:54am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437 "2025-04-08T11:54:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eoin3003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eoin3003](https://forums.unrealengine.com/u/Eoin3003)\
**Post date:** [April 8, 2025, 11:54am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437/1 "2025-04-08T11:54:32Z")

</div>

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:

```auto
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](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-modern-xcode-in-unreal-engine-5.3-and-newer#entitlements)

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

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![em\_bro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@em\_bro](https://forums.unrealengine.com/u/em_bro)\
**Post date:** [April 30, 2025, 1:49am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437/2 "2025-04-30T01:49:00Z")

</div>

I have a question. I’m also in the process of packaging to iOS, and when I add entitements in Xcode, do I add them in (mac).xcworkspace? Or do you add them in (IOS).xcworkspace? I’d like to add entitements even though it’s manual. Can you tell me how to add them manually?

Currently, what I have done is that if I add Sign in with Apple as +Capability to Singing & Capabilities in (Mac).xcworkspace, an error occurred and it was not applied when I added Sign in with Apple to (IOS).xcworkspace.

And IOS packaging of the project path’s Config-\>DefaultEngine.unrealEngine in mac.  
The Unreal Engine version is 5.3.2-Release, and I want to log in to Apple as Entitlements, but even if I add it in xcode, it does not add entitements to config-\>DefaultEngine.ini [/Script/IOSRuntimeSettings.IOSRuntimeSettings]  
AdditionalEntitlements=../../Build/IOS/ProjectName.entitlements을 넣어주고

Project Path -\>Build/IOS/ProjectName.entitements does not result in Sign in with Apple rights.

Since you said it can be done manually, may I know how you added it manually?  
I would greatly appreciate your advice.

---

<div class="post-metadata">

**Author:** ![Eoin3003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eoin3003](https://forums.unrealengine.com/u/Eoin3003)\
**Post date:** [May 23, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437/3 "2025-05-23T14:18:41Z")

</div>

Hi, sorry for the slow reply!

Here’s how I’ve been manually adding entitlements to my Unreal iOS project via Xcode:

1. **Package the Project**  
First, I package the project for iOS in Unreal. Once the packaging completes, Unreal generates an Xcode project file (`ProjectName.xcodeproj` ) located in:

```auto
ProjectFolder/Intermediate/ProjectFilesIOS

```

1. **Open in Xcode**  
Open the generated `.xcodeproj` file in Xcode. In the Project Navigator on the left, select the file with your project name (with the blue icon).

2. **Add Capabilities**  
Navigate to the **“Signing & Capabilities”** tab. Click the **“+ Capability”** button to bring up the list of available entitlements. Select the ones you need (e.g., Push Notifications, Background Modes, etc.).

3. **Running on Device**  
To run the project on a device, select the target iOS device in Xcode and press **Command + R**.

4. **Archiving for Distribution**  
If you’re preparing an archive for distribution:

- In Unreal, make sure **“For Distribution”** is enabled in the iOS packaging settings.
- Also set the **Build Configuration** to **“Shipping”**.
- Package the project again.
- After that, open the updated `.xcodeproj` file and **re-add the required entitlements** (this step has to be repeated every time you package).
- Then, from the Xcode menu, go to **Product → Archive**.

1. **Distributing the Archive**  
Once the archive is generated, you can distribute it via **TestFlight** or **App Store Connect**.  
I’ve successfully used this method for TestFlight distribution. I haven’t yet tried submitting to the App Store, but since the TestFlight build includes the required entitlements and permissions (`Info.plist` is correctly set up), I expect it should work.

This manual process works, but it’s tedious to repeat each time. That’s why I’m looking at ways to automate the inclusion of entitlements directly from Unreal, to streamline testing and deployment.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![VanguarDiZt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vanguardizt/32/1068513_2.png) [@VanguarDiZt](https://forums.unrealengine.com/u/VanguarDiZt)\
**Post date:** [May 28, 2025, 1:01am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437/4 "2025-05-28T01:01:59Z")

</div>

I’m new to Unreal but I think you’re looking for the:  
Project settings → Platform - iOS → build - Additional Plist Data

---

<div class="post-metadata">

**Author:** ![Eoin3003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eoin3003](https://forums.unrealengine.com/u/Eoin3003)\
**Post date:** [May 30, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-add-entitlements-files-to-xcode-automatically-from-unreal-like-info-plist-updates/2446437/5 "2025-05-30T14:29:28Z")

</div>

Thanks for the suggestion! I’m already adding Additional Plist Data via an XML file, so that part is covered. What I’m trying to figure out is how to properly add the HealthKit entitlement for iOS.
