Skip to content

fix(macos): load zlib - #104

Merged
gmurayama merged 3 commits into
masterfrom
fix/macos-editor-zlib
Dec 3, 2025
Merged

fix(macos): load zlib#104
gmurayama merged 3 commits into
masterfrom
fix/macos-editor-zlib

Conversation

@gmurayama

Copy link
Copy Markdown
Collaborator

Latest version of Pitaya fails on Unity Editor running on Mac OS

DllNotFoundException: libpitaya-mac assembly:<unknown assembly> type:<unknown type> member:(null)
Pitaya.StaticPitayaBinding.SetLogFunction (NativeLogFunction fn) (at <b477b557aa9a4327aaf49e545dc992f2>:0)
Pitaya.StaticPitayaBinding..cctor () (at <b477b557aa9a4327aaf49e545dc992f2>:0)
Rethrow as TypeInitializationException: The type initializer for 'Pitaya.StaticPitayaBinding' threw an exception.
Pitaya.PitayaBinding.set_QueueDispatcher (Pitaya.IPitayaQueueDispatcher value) (at <b477b557aa9a4327aaf49e545dc992f2>:0)

The root cause is a failure in loading zlib. The fix add a fallback path to /usr/lib in order to find the shared lib libz.1.dylib

Comment thread CMakeLists.txt
@gmurayama
gmurayama merged commit 5be92d4 into master Dec 3, 2025
11 checks passed
@gmurayama
gmurayama deleted the fix/macos-editor-zlib branch December 3, 2025 13:05
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.

3 participants