mockingbirdnest/Principia

Fail to load on MacOS Ventura

JamesDenghy opened this issue · 5 comments

I installed KSP, CKAN and RSS on my MacBook Air running Ventura, and everything is working perfectly.
However, when I download Principia (downloading the 岩澤 release and dragging the unzipped Principia into GameData) I get the following error:

The Principia DLL failed to load.
An unknown error occurred; detected OS Unix 22.5.0.0 64-bit; tried loading dll at 'GameData/Principia/Linux64/principia.so', 'GameData/Principia/MacOS64/principia.so'. Note that libc++abi1-8 and libc++1-8 or later (Linux) or Sierra or later (MacOS) are required.

Warning: don't load a Principia save before you have fixed this error; it might get damaged.

(Note that it says I'm on Unix, which is weird and probably the source of the error.)
If I ignore the error and load a save, I cannot see the Principia icon on the list of mods (meaning I can't change the frame of reference, etc.) and the N-body simulation isn't working.
I have completely no clue how to fix it (I tried to reinstall everything but the issue persists). Am I installing the mod wrong?

pleroy commented

(macOS is Unix; nothing to see here.)

We have seen a similar problem a few weeks ago with the same version of the OS. My hunch is that Apple recently added some security mechanisms to prevent people from executing random DLLs that they download from the Internet.

At any, please see the Discord discussion that starts here. As usual with this sort of stuff there is a bit of noise, but in the end the user was able to run Principia. See if using the same commands helps you.

If not, I suggest asking on that Discord server: while we build for macOS, we are not macOS experts, and there will be people there with a lot more know-how to help you.

Thank you very much for the reply! I understand that
However, the discord link doesn't seem to be working; it takes me to a Discord webpage saying I don't have access.
Is there something I must do before I can open the link? I have an account logged into discord.com.
Or, can you kindly provide a path to the discussion? (the server, name of discussion, etc.) that I can look for.

Attached below is a screenshot of the linked webpage.
Uploading Screenshot 2023-08-07 at 12.14.55 PM.png…

This is the screenshot. There seems to be a problem with uploading in the comment above.

Screenshot 2023-08-07 at 12 14 55 PM

al2me6 commented

You'll need to join the KSP-RO server first: https://discord.gg/ZGbR6nv

Reopening as we need to properly fix this.

To know if the file is quarantined (it is in this case):

% xattr /Applications/KSP_osx/GameData/Principia/MacOS64/principia.so
com.apple.quarantine

To unquarantine it:

xattr -d com.apple.quarantine principia.so

and then sign KSP and Principia:

sudo codesign --force --deep --sign - /Applications/KSP_osx/KSP.app
sudo codesign --force --deep --sign - /Applications/KSP_osx/GameData/Principia/MacOS64/principia.so

We probably need to do some official code signing when we build the release to keep Apple happy.