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

Fail to load on MacOS Ventura #3736

Open
JamesDenghy opened this issue Aug 7, 2023 · 5 comments
Open

Fail to load on MacOS Ventura #3736

JamesDenghy opened this issue Aug 7, 2023 · 5 comments

Comments

@JamesDenghy
Copy link

JamesDenghy commented Aug 7, 2023

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
Copy link
Member

pleroy commented Aug 7, 2023

(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.

@JamesDenghy
Copy link
Author

JamesDenghy commented Aug 7, 2023

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…

@JamesDenghy
Copy link
Author

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
Copy link
Collaborator

al2me6 commented Aug 7, 2023

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

@pleroy pleroy reopened this Feb 11, 2024
@pleroy
Copy link
Member

pleroy commented Feb 11, 2024

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.

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

No branches or pull requests

3 participants