# Unreal Engine 5.1.1 Not writing to IOS Apple Game Center Leaderboards anymore. It used to in our previous 4.27 version

**URL:** <https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905>\
**Category:** Blueprint\
**Tags:** leaderboard, unreal-engine, iOS, Blueprint, question\
**Created:** [April 11, 2023, 4:19am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905 "2023-04-11T04:19:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Go\_Gamer\_Girl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/go_gamer_girl/32/677575_2.png) [@Go\_Gamer\_Girl](https://forums.unrealengine.com/u/Go_Gamer_Girl)\
**Post date:** [April 11, 2023, 4:19am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/1 "2023-04-11T04:19:39Z")

</div>

Unreal Engine 5.1.1 Not writing to IOS Apple Game Center Leaderboards anymore. It used to in our previous 4.27 version but not anymore.

1. create blank project
2. I project settings enable game center
3. setup leaderboards in apple’s Game Center and submit it to go live, once live go back to unreal engine 5.1.1. Im attaching screenshot to show my apple Game Center setup to confirm that both my leaderboards are live, however inline with this example im using the leaderboard with the ID of highcoins.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/e/cfed3bfcae33a4598890bde97264e7cccaedc28c.jpeg)

1. Setup blueprint to login user to apple Game Center, make sure you fire the login to apple Game Center before you try to write to leaderboards or read from leaderboards. l setup blueprint to write to leaderboard (see screenshot that is attached)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/5/405c007129c32b36092d837b3a86567733d60956.png)

1. package game (with all the nessisary certificates and profiles from apple, the usual stuff) and upload to transporter.
2. download game via test flight, or make go live ( I tried both)
3. open game can run bp to write to leaderboard and then read from leaderboard afterwards.
4. leaderboard does not write to IOS Apple Game Center, values still show 0. It looks like something happens when I press the button to submit score to leaderboard as there is a second or half a second lag like its sending information, however when I read from leaderboard there are no values logged in the apple Game Center. I also checked in apple Game Center portal and it does not show that any player scores are recorded.

we even made blueprint force a store value as in the screenshot below, still no luck.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/5/255a64627b76522180d8499acd9550b24aecd3e5.jpeg)

Any questions or if anyone was able to get this setup successfully or if you have a workaround please give me a holler, and thanks in advance for your time 🙂

---

<div class="post-metadata">

**Author:** ![ParNishka18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ParNishka18](https://forums.unrealengine.com/u/ParNishka18)\
**Post date:** [June 26, 2023, 1:27am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/2 "2023-06-26T01:27:58Z")

</div>

I have the same. Haven’t found a fix?

---

<div class="post-metadata">

**Author:** ![Go\_Gamer\_Girl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/go_gamer_girl/32/677575_2.png) [@Go\_Gamer\_Girl](https://forums.unrealengine.com/u/Go_Gamer_Girl)\
**Post date:** [August 23, 2023, 4:51am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/3 "2023-08-23T04:51:22Z")

</div>

Hi @ParNishka18 what version of unreal engine did you have. Im just now revisiting this, and since 5.2.1 is out I’m working if this has been resolved yet? Anyone know the answer? Unreal has not even logged this as a bug and I’ve opened up a few bug tickets on this. @unrealengine_us

---

<div class="post-metadata">

**Author:** ![ParNishka18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ParNishka18](https://forums.unrealengine.com/u/ParNishka18)\
**Post date:** [August 23, 2023, 10:39pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/4 "2023-08-23T22:39:18Z")

</div>

i tried all versions of ue5 except 5.3 and none of them worked

---

<div class="post-metadata">

**Author:** ![4ntBa4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4ntBa4](https://forums.unrealengine.com/u/4ntBa4)\
**Post date:** [December 7, 2023, 5:57pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/5 "2023-12-07T17:57:20Z")

</div>

Anyone able to move past this? Did you get Leaderboards Working for iOS?

---

<div class="post-metadata">

**Author:** ![\_aking](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_aking/32/924182_2.png) [@\_aking](https://forums.unrealengine.com/u/_aking)\
**Post date:** [December 16, 2023, 4:54am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/6 "2023-12-16T04:54:54Z")

</div>

As of iOS15, Apple [requires](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_game-center) a new entitlement key to enable GameCenter. You’ll need to apply this UE5 github patch to enable that (or add it directly to your entitlements file):

[https://github.com/EpicGames/UnrealEngine/commit/57cb31ad6901deb02438c49deaa0b34a00bf19a1](https://github.com/EpicGames/UnrealEngine/commit/57cb31ad6901deb02438c49deaa0b34a00bf19a1)

The key itself is:

```plist
<key>com.apple.developer.game-center</key>
<true/>

```

Cheers,  
Adam  
Mobile Platform (Apple)

---

<div class="post-metadata">

**Author:** ![4ntBa4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4ntBa4](https://forums.unrealengine.com/u/4ntBa4)\
**Post date:** [December 19, 2023, 2:30pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/10 "2023-12-19T14:30:19Z")

</div>

Hey Adam Thanks for replying.

I grabbed the code from the GitHub link and added the 9 lines to my IOSexports.cs file. Set my write leaderboard integer node to write a value as soon as my main menu opens and still not seeing any values being written to the Game Center.

All my ID’s are correct and all my achievements work. Any further guidance on what I might be doing wrong or missing would be appreciated. TY

I had also tried to just add the key to the entitlements file but I couldn’t get the build to complete successfully. Error about modification to the entitlements file.???

---

<div class="post-metadata">

**Author:** ![NaN08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NaN08](https://forums.unrealengine.com/u/NaN08)\
**Post date:** [February 20, 2024, 4:52pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/11 "2024-02-20T16:52:07Z")

</div>

Hi, has anyone found a solution for this issue, I am not able to save any score to the leaderboard. The only thing that is working is displaying it.

It is amazing how much time we lose on those issues!

Where should com.apple.developer.game-center key be added? I did it in Xcode project to info plist …

As an info the leaderboard on google play works

---

<div class="post-metadata">

**Author:** ![sizle951](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sizle951](https://forums.unrealengine.com/u/sizle951)\
**Post date:** [April 10, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/12 "2024-04-10T18:19:03Z")

</div>

Hi Adam,

Are there any other ways to resolve this issue in 5.2.1?

---

<div class="post-metadata">

**Author:** ![sizle951](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sizle951](https://forums.unrealengine.com/u/sizle951)\
**Post date:** [April 10, 2024, 8:42pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/13 "2024-04-10T20:42:26Z")

</div>

Any luck solving this? I’m trying to fix the issue now and can’t. I have the same issue where the achievements work, but I’m unable to write to the leader board.

---

<div class="post-metadata">

**Author:** ![BetaFury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/betafury/32/1205905_2.png) [@BetaFury](https://forums.unrealengine.com/u/BetaFury)\
**Post date:** [January 14, 2025, 10:36pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/14 "2025-01-14T22:36:43Z")

</div>

Still looking for an answer to this

---

<div class="post-metadata">

**Author:** ![smccabe-ac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smccabe-ac](https://forums.unrealengine.com/u/smccabe-ac)\
**Post date:** [February 7, 2025, 2:06am UTC](https://forums.unrealengine.com/t/unreal-engine-5-1-1-not-writing-to-ios-apple-game-center-leaderboards-anymore-it-used-to-in-our-previous-4-27-version/884905/15 "2025-02-07T02:06:12Z")

</div>

I found a solution to this. The problem (at least, for me), is that the entitlements need be referenced by XCode’s CODE\_SIGN\_ENTITLEMENTS environment setting.

**Background**

If you generate an XCode project, go to the build settings and add a Capability, it generates a .entitlements file with the appropriate perms and adds the CODE\_SIGN\_ENTITLEMENTS setting to the xcconfig.

Of course, this isn’t really a practical workaround as it means every IOS build requires a manual step.

**Solution**

1. Create a .entitlements file in your project (I put it in /Source/[projectName]).

2. Open DefaultEngine.ini in a text editor.

3. Find the section [/Script/MacTargetPlatform.XcodeProjectSettings]

4. Add the setting, “PremadeIOSEntitlements=/Game/Path/To/File.entitlements”.

PremadeIOSEntitlements=/Game/Source/[projectName]/HealthKit.entitlement

NOTE: /Game/, in this case, is a macro for the project name. This might be a familiar convention to some but it threw for me a loop.

**Further Thoughts**

I’m not sure if this is the _right_ solution. It’s what I came up with by discovering the CODE\_SIGN\_ENTITLEMENTS setting and then working backward through the UBT source to figure things out. Which feels “too hard” for what seems like it ought to be a common UE5-on-IOS feature.

Also, it might be that HealthKit is unique in that it requires this. Otherwise, I don’t see how the ini exposed Game Center support would ever work. Even if you check that box, it doesn’t add the CODE\_SIGN\_ENTITLEMENT reference.
