Skip to content

Conversation

@evgenykochetkov
Copy link
Contributor

A tiny tweak that allows building a binary that runs natively on both Apple silicon and Intel-based Macs.

file ./addons/PathMesh3D/bin/*.dylib
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib:   Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64]
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64]
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64

Here is a link to a manually triggered build to prove that it properly works: https://github.com/evgenykochetkov/PathMesh3D/actions/runs/20071087951/job/57573746112#step:7:9

Also, you may need to point the users to this page: https://docs.godotengine.org/en/stable/tutorials/export/running_on_macos.html#app-is-not-signed-executable-is-linker-signed

Basically, to get rid of this error
error
the user may need to run

xattr -dr com.apple.quarantine ./addons/PathMesh3D/bin/*.dylib

from the project root.

@iiMidknightii
Copy link
Owner

Ahh mac is new to me, thanks for all this help. Merging as it looks good.

@iiMidknightii iiMidknightii self-requested a review December 10, 2025 00:46
@iiMidknightii iiMidknightii merged commit bb2abdb into iiMidknightii:main Dec 10, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants