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

Library Loading Exception during APK Sideload #74

Open
TheRouletteBoi opened this issue Oct 23, 2024 · 5 comments
Open

Library Loading Exception during APK Sideload #74

TheRouletteBoi opened this issue Oct 23, 2024 · 5 comments

Comments

@TheRouletteBoi
Copy link

Description: While attempting to sideload an APK using sideloader-cli on macOS (arm64), I encountered an issue where the required libraries could not be loaded. The sideloader fails during the device provisioning step, with the following error message:

➜  Downloads ./sideloader-cli-arm64-apple-macos
                     app INFO  2024-10-22T22:27:16.815 Downloading APK...
                     app INFO  2024-10-22T22:32:14.844 Extracted successfully!
            cli_frontend INFO  2024-10-22T22:32:14.844 Download completed.
                     app INFO  2024-10-22T22:32:14.844 Creating device...
                     app INFO  2024-10-22T22:32:14.845 Device created successfully.
                     app INFO  2024-10-22T22:32:14.846 Provisioning device...
            cli_frontend ERROR 2024-10-22T22:32:15.389 dynamicloader.LibraryLoadingException at ../../../.dub/packages/dynamic-loader/65a8b8b8a6d44d47e63bddc985268592ecf47764/dynamic-loader/source/dynamicloader.d:35: Cannot load any of the following libraries: ["libplist-2.0.3.dylib", "libplist-2.0.4.dylib"]

Environment:

macOS (arm64)
sideloader-cli version: (tested both release and GitHub Actions build)

@Dadoum
Copy link
Owner

Dadoum commented Oct 23, 2024

Try to install libplist with brew

@TheRouletteBoi
Copy link
Author

Try to install libplist with brew

I have it installed already

~ brew install libplist

==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
Warning: libplist 2.6.0 is already installed and up-to-date.
To reinstall 2.6.0, run:
  brew reinstall libplist

@Dadoum
Copy link
Owner

Dadoum commented Oct 23, 2024

Try to add DYLD_LIBRARY_PATH=/usr/local/lib/ before the sideloader path.

If it still doesn't work, then find where the library is installed and use DYLD_LIBRARY_PATH=<path> instead

@Derewith
Copy link

Derewith commented Dec 5, 2024

Still not working.

./sideloader-cli-arm64-apple-macos app INFO 2024-12-05T16:38:49.954 Provisioning device... cli_frontend ERROR 2024-12-05T16:38:50.969 dynamicloader.LibraryLoadingException at ../../../.dub/packages/dynamic-loader/65a8b8b8a6d44d47e63bddc985268592ecf47764/dynamic-loader/source/dynamicloader.d:35: Cannot load any of the following libraries: ["libplist-2.0.3.dylib", "libplist-2.0.4.dylib"]

@Dadoum
Copy link
Owner

Dadoum commented Dec 7, 2024

Still not working.

./sideloader-cli-arm64-apple-macos app INFO 2024-12-05T16:38:49.954 Provisioning device... cli_frontend ERROR 2024-12-05T16:38:50.969 dynamicloader.LibraryLoadingException at ../../../.dub/packages/dynamic-loader/65a8b8b8a6d44d47e63bddc985268592ecf47764/dynamic-loader/source/dynamicloader.d:35: Cannot load any of the following libraries: ["libplist-2.0.3.dylib", "libplist-2.0.4.dylib"]

Do you know where libplist's binary is located on your computer?

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