# can't shutdown macos application build by unity with eos plugin for unity 4.1.0 

**URL:** <https://forums.unrealengine.com/t/cant-shutdown-macos-application-build-by-unity-with-eos-plugin-for-unity-4-1-0/2858367>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [August 22, 2025, 5:55am UTC](https://forums.unrealengine.com/t/cant-shutdown-macos-application-build-by-unity-with-eos-plugin-for-unity-4-1-0/2858367 "2025-08-22T05:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 22, 2025, 5:55am UTC](https://forums.unrealengine.com/t/cant-shutdown-macos-application-build-by-unity-with-eos-plugin-for-unity-4-1-0/2858367/1 "2025-08-22T05:55:09Z")

</div>

Unity 6000.0.51f1

EOS plugin for Unity 4.1.0

MacOS 15.6.1

After I replaced the EOS plugin from version 4.0.1 to 4.1.0, the macOS version of our application no longer shuts down.

This happens even when there is no communication with EOS.

I enabled EOS\_CAN\_SHUTDOWN, which is defined on line 35 of EOSManager.cs, and the application now quits properly.

Is this the correct way to fix this?

---

<div class="post-metadata">

**Author:** ![JskT01xa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JskT01xa](https://forums.unrealengine.com/u/JskT01xa)\
**Post date:** [September 29, 2025, 1:31pm UTC](https://forums.unrealengine.com/t/cant-shutdown-macos-application-build-by-unity-with-eos-plugin-for-unity-4-1-0/2858367/2 "2025-09-29T13:31:09Z")

</div>

Hi, In version **4.1.0** , an adjustment was made in EOSManager to ensure that the EOS\_DISABLE directive works correctly.

As part of this change, a difference in the shutdown behavior on macOS was introduced. The cleanest solution is to **update the definition of**

**EOS\_CAN\_SHUTDOWN** to include UNITY\_STANDALONE\_OSX , since macOS does support shutting down the EOS SDK properly in standalone builds:

```auto
#if UNITY_EDITOR_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX
#define EOS_CAN_SHUTDOWN
#endif

```

Your current solution—manually enabling EOS\_CAN\_SHUTDOWN on macOS standalone—is also valid and is a common practice in production to ensure the process terminates correctly.

It’s worth noting that there is a warning in the code indicating that unloading shared libraries on macOS/Linux is “not reliable,” which is why this directive is not enabled by default. However, this warning mainly applies to hot-reload scenarios (e.g., inside the Editor), not to standalone builds.

In a standalone build, shutting down the app with this define is safe, provided that:

- You do not attempt to unload and reload EOS during the same execution.
- You only use it when the process is actually terminating, not during Editor domain reloads.

For these reasons, updating the EOS\_CAN\_SHUTDOWN definition to include UNITY\_STANDALONE\_OSX is the cleanest and most maintainable approach. It ensures consistent behavior between the Editor and macOS standalone builds without requiring manual patches.

On macOS and Linux, there isn’t a known reliable way to unload shared libraries.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 2, 2025, 1:56am UTC](https://forums.unrealengine.com/t/cant-shutdown-macos-application-build-by-unity-with-eos-plugin-for-unity-4-1-0/2858367/3 "2025-10-02T01:56:48Z")

</div>

Thank you for your reply.

I recently updated to EOS SDK 4.1.1 and the issue was fixed.

Thank you for fixing it.
