Dadoum / Sideloader

Open-source cross-platform iOS app sideloader (yep, even Linux is supported). Alternative to Sideloadly, AltServer, SideServer, Cydia Impactor, iOS App Signer…
Other
393 stars 35 forks source link

Library Loading Exception during APK Sideload #74

Open TheRouletteBoi opened 1 month ago

TheRouletteBoi commented 1 month ago

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 commented 1 month ago

Try to install libplist with brew

TheRouletteBoi commented 1 month ago

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 commented 1 month ago

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