Skip to content

Load libSystem.dylib instead of libc.so.6 on macOS#591

Open
aletru01 wants to merge 1 commit intoLedgerHQ:masterfrom
aletru01:macos-fix
Open

Load libSystem.dylib instead of libc.so.6 on macOS#591
aletru01 wants to merge 1 commit intoLedgerHQ:masterfrom
aletru01:macos-fix

Conversation

@aletru01
Copy link

@aletru01 aletru01 commented Jul 5, 2025

When running pytest with the following command on macOS:

pytest -v --tb=short --device flex -k test_gcs_1inch --display on app-ethereum

I encountered this error:
OSError: dlopen(libc.so.6, 0x0006): tried: 'libc.so.6' (no such file) ...

This happens because libc.so.6 is a Linux-specific shared object and does not exist on macOS. As a result, ctypes.cdll.LoadLibrary('libc.so.6') fails, which eventually leads to speculos crashing and the device connection being reset.

The goal of this PR would be to add support for MacOS

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