• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by Phan-Phantz · Sep 12, 2022 at 06:15 AM · pluginbuild errormacosxlibrary

Build failed for MacOS version of Unity Project with GOG SDK

  • We tried to build MacOS version of our Unity Game with GOG SDK Version : 1.144.1 and the build failed with error in Unity 2021.3.2f1, 2021.3.8f1, and 2022.20b6 on MacOS Monterey 12.3.1 :


Building /Users/..../OurGame.app/Contents/PlugIns/Galaxy.bundle/Contents/MacOS/libGalaxyCSharpGlue.dylib failed with output: Failed because this command failed to write the following output files: /Users/..../OurGame.app/Contents/PlugIns/Galaxy.bundle/Contents/_CodeSignature/CodeResources


This is from the Editor log :

System.Exception: Could not find executable at '/Users/..../OurGame.app/Contents/PlugIns/Galaxy.bundle/Contents/MacOS/Galaxy' inside a bundle.


From a Editor log message above, it shows that Unity could not find executable at OurGame.app/Contents/PlugIns/Galaxy.bundle/Contents/MacOS/Galaxy


  • From previous errors, we got a workaround to build the game by renaming ‘libGalaxy.dylib’ and ‘libGalaxyCSharpGlue.dylib’ to ‘Galaxy’ and ‘GalaxyCSharpGlue’ with no extensions and can build successfully but then when we run the game, it produces this error log :


DllNotFoundException: Unable to load DLL 'GalaxyCSharpGlue'. Tried the load the following dynamic libraries: Unable to load dynamic library 'GalaxyCSharpGlue' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(GalaxyCSharpGlue, 0x0005): tried: 'GalaxyCSharpGlue' (no such file), '/usr/local/lib/GalaxyCSharpGlue' (no such file), '/usr/lib/GalaxyCSharpGlue' (no such file), '/Users/...../GalaxyCSharpGlue' (no such file)


  • It appears that ‘GalaxyCSharpGlue' needs to be in the directory that contains our game’s .app file. So, we tried moving GalaxyCSharpGlue to that directory then we encountered a different error:


DllNotFoundException: Unable to load DLL 'GalaxyCSharpGlue'. Tried the load the following dynamic libraries: Unable to load dynamic library 'GalaxyCSharpGlue' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(GalaxyCSharpGlue, 0x0005): tried: 'GalaxyCSharpGlue' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/GalaxyCSharpGlue' (no such file), '/usr/lib/GalaxyCSharpGlue' (no such file), '/Users/......./GalaxyCSharpGlue' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))


  • We tried renaming 'GalaxyCSharpGlue' back to 'GalaxyCSharpGlue.bundle' , 'GalaxyCSharpGlue,dylib', and ‘ 'libGalaxyCSharpGlue.dylib' but nothing work.

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

193 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why AARs in Unity did't work ? 0 Answers

MacOS API level restricted by Unity? (Plugin) 1 Answer

iOS/Xcode: Duplicate Symbols 1 Answer

Failed to load 'NVUnityPlugin' 0 Answers

Android Manifest xml missing - Build failed. Need Help! 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges