How to solve Appium error: Library not loaded: …lib/libmbedcrypto.13.dylib

20 February 2024 Stephan Petzl Leave a comment Tech-Help

You might run into this problem when installing Appium or Appium Doctor on your mac. The full error that is printed when you run Appium Doctor might look like this:

dyld[89251]: Library not loaded: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.13.dylib'
  Referenced from: '/opt/homebrew/Cellar/librist/0.2.7_2/lib/librist.4.dylib'
  Reason: tried: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.13.dylib' (no such file), '/usr/local/lib/libmbedcrypto.13.dylib' (no such file), '/usr/lib/libmbedcrypto.13.dylib' (no such file), '/opt/homebrew/Cellar/mbedtls/3.4.1/lib/libmbedcrypto.13.dylib' (no such file), '/usr/local/lib/libmbedcrypto.13.dylib' (no such file), '/usr/lib/libmbedcrypto.13.dylib' (no such file)
zsh: abort      ffmpeg -version

How to resolve the issue?

If you are using brew, try to uninstall librist and mbedtls and then reinstall ffmpeg. That usually works:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall ffmpeg

Like this article? there’s more where that came from!