bcssov / IronyModManager

Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
https://bcssov.github.io/IronyModManager/
MIT License
346 stars 41 forks source link

Loading libhostfxr.dylib failed in OSX #418

Closed inanx closed 1 year ago

inanx commented 1 year ago

Describe the bug IronModManager does not load because of a loading error (gatekeeper based on #119 )

To Reproduce Steps to reproduce the behavior:

  1. Download latest osx-x64.zip
  2. Unzip to a directory (I had mine inside Paradox Interactive directory in Documents folder), add execute permission via chmod, and run ./IronyModManager executable file.
  3. It errors out with a loading error.

Expected behavior Successfully open Irony Mod Manager.

Screenshots N/A

Logs Not an app/system error but these are the terminal logs:

Failed to load /Users/<redacted>/Documents/Paradox Interactive/Irony/libhostfxr.dylib, error: dlopen(/Users/<redacted>/Documents/Paradox Interactive/Irony/libhostfxr.dylib, 1): no suitable image found. Did find: /Users/<redacted>/Documents/Paradox Interactive/Irony/libhostfxr.dylib: code signature in (/Users/<redacted>/Documents/Paradox Interactive/Irony/libhostfxr.dylib) not valid for use in process using Library Validation: library load disallowed by system policy The library libhostfxr.dylib was found, but loading it from /Users/<redacted>/Documents/Paradox Interactive/Irony/libhostfxr.dylib failed Installing .NET prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=2063366

Version:

Additional context Updated based on the conversations on this issue.

Solution After downloading the osx-x64.zip in ~/Downloads, open terminal and run the following:

  1. cd ~/Applications
  2. mkdir IronyModManager.app
  3. cd IronyModManager.app
  4. mv ~/Downloads/osx-64.zip .
  5. unzip osx-64.zip
  6. chmod +x IronyModManager

Open IronyModManager by any of the following:

  1. Finder: go to /Applications and double-click IronyModManager
  2. Terminal: cd /Applications/IronyModManager.app && ./IronyModManager
  3. Launchpad: search IronyModManager and click IronyModManager
bcssov commented 1 year ago

I would say it's an incomplete download or corrupt download or gatekeeper. Then I saw the version 1.5.xx has long ago reached end of life and is no longer supported. 1.24.xx version is latest please try that.

inanx commented 1 year ago

FIrstly, thanks for this. I checked the downloaded version and updated the comment. It could possibly be corrupt download, so I downloaded again. I unzipped, changed permissions and executed it but I got the same problem.

ss 136

I actually have to go to the Finder and right-click to open IronyModManager, but just can't get past this libhostfxr.dylib popup.

inanx commented 1 year ago

Also, maybe related to this issue: https://github.com/bcssov/IronyModManager/issues/313#issue-1065547488

bcssov commented 1 year ago

This is probably gatekeeper, see: https://github.com/bcssov/IronyModManager/issues/119

I know for a fact when it's not interfering that Irony works. Some unrelated screenshots shared to me by one of testers using mac big sur (which is I believe your version).

Image2 img_3

This was from a test done within the last 30 days (unrelated to the current issue though).

inanx commented 1 year ago

I was able to make it work without doing anything spectacular. I just copied the whole IronyModManager folder to /Applications and renamed it IronyModManager.app and double clicked it.

I tested it in game and true enough my test mod was in there. Amazing!

Thanks @bcssov! Count me in as one of your mac testers.