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

Have meson codesign binaries/dylibs for macOS #382

Open
StarWitch opened this issue Apr 27, 2024 · 1 comment
Open

Have meson codesign binaries/dylibs for macOS #382

StarWitch opened this issue Apr 27, 2024 · 1 comment
Assignees

Comments

@StarWitch
Copy link
Member

When developing locally on macOS, you'll run into errors like this if you try to do a meson install -C build/ and run the resulting Taisei.app:

$ ./Taisei 
dyld[91792]: Library not loaded: @executable_path/dylibs/libcrypto.3.dylib
  Referenced from: <EFAC9454-72D8-387F-B0C4-2E852F1F7DE7> /Users/username/Applications/Taisei.app/Contents/MacOS/Taisei
  Reason: tried: '/Users/username/Applications/Taisei.app/Contents/MacOS/dylibs/libcrypto.3.dylib' (code signature in <45FFB471-EF30-33DC-8172-4F545AC88544> '/Users/username/Applications/Taisei.app/Contents/MacOS/dylibs/libcrypto.3.dylib' not valid for use in process: Trying to load an unsigned library)
[1]    91792 abort      ./Taisei

This can be solved by running codesign -s - on the dylibs that meson pulls into the build.

An example of how to do this in meson can be found here: link

@Akaricchi
Copy link
Member

This should be fairly easy to add into scripts/macos-install-dylibs.py. Can you give it a try?

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

No branches or pull requests

2 participants