PlayEveryWare / eos_plugin_for_unity

Repository for PlayEveryWare's EOS Plugin for Unity, bringing the functionality of Epic Online Services to the Unity Game Engine.
https://eospluginforunity.playeveryware.com
291 stars 54 forks source link

UPM - Cannot build MacOs version #346

Closed Myhims closed 1 year ago

Myhims commented 1 year ago

Describe the bug When importing the package to Unity from the git url (https://github.com/PlayEveryWare/eos_plugin_for_unity_upm.git), when we try to build on MacOs, 3 errors occurs :

Building build.app\Contents\PlugIns\libEOSSDK-Mac-Shipping.dylib failed with output:
System.Exception: Cannot sign 'build.app/Contents/PlugIns/libEOSSDK-Mac-Shipping.dylib' because it is not a valid Mach-O binary
Building build.app\Contents\PlugIns\libDynamicLibraryLoaderHelper.dylib failed with output:
System.Exception: Cannot sign 'build.app/Contents/PlugIns/libDynamicLibraryLoaderHelper.dylib' because it is not a valid Mach-O binary.
Building build.app\Contents\PlugIns\MicrophoneUtility_macos.dylib failed with output:
System.Exception: Cannot sign 'build.app/Contents/PlugIns/MicrophoneUtility_macos.dylib' because it is not a valid Mach-O binary.

To Reproduce Steps to reproduce the behavior:

  1. Create an empty 2D project in Unity
  2. Install the UPM package
  3. Configure from Tools -> Editor (Main and MacOs config)
  4. Run a MacOs build

Expected behavior Build must succedd

Desktop (please complete the following information):

andrew-hirata-playeveryware commented 1 year ago

Hello @Myhims!

Do you know if git-lfs is installed on the machine that you're using Unity on? It can happen that if you use the git url, and you don't have git-lfs installed, it won't correctly download the binaries.

Does it happen with other build targets?

Myhims commented 1 year ago

Hello @andrew-hirata-playeveryware There is no problem with others build targets, everything is fine under Windows or Linux. I'll try to install git-lfs et re-import the package.

Myhims commented 1 year ago

You're awesome, that was the issue ! I missed it on the documentation... my bad. Thanks !

andrew-hirata-playeveryware commented 1 year ago

No worries! Glad to be able to assist and get your issue resolved!