Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Loading in Unity on macOS ARM #141

Closed
ETdoFresh opened this issue Oct 9, 2022 · 3 comments
Closed

Error Loading in Unity on macOS ARM #141

ETdoFresh opened this issue Oct 9, 2022 · 3 comments
Labels

Comments

@ETdoFresh
Copy link

ETdoFresh commented Oct 9, 2022

Describe the bug
Hello! I understand Mac support is not yet available. However, I do see progress towards this feature. I just wanted to log the issue that I am unable to load the plugin via my Mac Book Pro 2021 Apple M1 Pro using Unity 2022.1.10f1 (Silicon).

When I open the editor and receive the following Unity Warning:
Plugins: Couldn't open /Users/etgarcia/Desktop/MyProject/Packages/com.playeveryware.eos_plugin_for_unity_upm@2.1.4/Runtime/macOS/libDLLH_macos.dylib, error: dlopen(/Users/etgarcia/Desktop/MyProject/Packages/com.playeveryware.eos_plugin_for_unity_upm@2.1.4/Runtime/macOS/libDLLH_macos.dylib, 0x0002): tried: '/Users/etgarcia/Desktop/MyProject/Packages/com.playeveryware.eos_plugin_for_unity_upm@2.1.4/Runtime/macOS/libDLLH_macos.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

Emphasis on libDLLH_macos.dylib and have x86_64 but need arm64e. If there is anything I can do to help compile a version of this dylib, please let me know. Thanks so much for looking! :)

To Reproduce
Steps to reproduce the behavior:

  1. Clone repository into project.
  2. Open Unity Editor on macOS ARM.

Expected behavior
No warning to appear when opening the editor.

Desktop (please complete the following information):

  • OS: macOS Arm (macOS Montery 12.5.1)
  • Unity 2022.1.10f1 (Silicon)
  • Plugin 2.1.4
@ETdoFresh ETdoFresh changed the title Error loading Error Loading in Unity on macOS ARM Oct 9, 2022
@andrew-hirata-playeveryware
Copy link
Collaborator

Hello! The EOS SDK version that is integrated doesn't support ARM on macOS so we also don't support it. That being said, I think the 1.15.2 EOS SDK does support ARM, so in a future version of the Plugin, we will probably support both x86_64 and ARM64 on macOS. Either way I'll write up something so that we know we need to do that for macOS before we officially launch the platform.

@github-actions
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Oct 18, 2022
@ETdoFresh
Copy link
Author

Hey all, before I close this out, I just wanted to leave some steps how I got the preview to work before MacOSX is officially supported.

  • In Assets/Plugins/macOS, I ran the following command from my M1:
    • g++ -dynamiclib -o libDLLH_macos.dylib DynamicLibraryLoaderHelper_macos.cpp
    • This rebuilds the DLL Helper for the ARM architecture
  • In Edit > Project Settings > Player > Standalone Mac > Other Settings > Scripting Define Symbols > Add EOS_PREVIEW_PLATFORM and Apply
  • Duplicate Assets/StreamingAssets/EOS/EpicOnlineServicesConfig.json to eos_macos_config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants