解决mac运行scrcpy报错库找不到的问题

背景

scrcpy是一个手机投屏工具,非常好用,但运气不佳也会遇到一些问题

问题描述

某日,运行scrcpy进行手机投屏时,突然报错库找不到:

bash 复制代码
➜ ~ scrcpy
dyld[98464]: Library not loaded: /opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib
  Referenced from: <8C2E2CF9-054E-300F-BDE7-3DE52F848638> /opt/homebrew/Cellar/librist/0.2.7_3/lib/librist.4.dylib
  Reason: tried: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/usr/local/lib/libmbedcrypto.14.dylib' (no such file), '/usr/lib/libmbedcrypto.14.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/usr/local/lib/libmbedcrypto.14.dylib' (no such file), '/usr/lib/libmbedcrypto.14.dylib' (no such file, not in dyld cache)
[1]    98464 abort      scrcpy

解决方案

多番尝试,最后的解决方案,是升级并更新homebrew,再重装scrcpy

bash 复制代码
➜ ~ brew update && brew upgrade
➜ ~ brew uninstall scrcpy && brew install scrcpy

重装完成后,再运行scrcpy就能正常投屏了。

相关推荐
laocooon5238578864 小时前
一台入网的电脑有6要素, 机器名,mac,ip,俺码,网关,dns,分别有什么作用
网络协议·tcp/ip·macos
德亦周14 小时前
如何在Mac电脑上的VScode去配置C/C++环境
c++·vscode·macos
tonngw20 小时前
【Mac 从 0 到 1 保姆级配置教程 12】- 安装配置万能的编辑器 VSCode 以及常用插件
git·vscode·后端·macos·开源·编辑器·github
亚林瓜子1 天前
虚拟Python 环境构建器virtualenv安装(macOS版)
python·macos·virtualenv·pipx
瓜子三百克1 天前
采用sherpa-onnx 实现 ios语音唤起的调研
macos·ios·cocoa
北漂强1 天前
Mac---安装Navicat 16
macos
ElenaYu1 天前
mac安装cast
python·macos·cast
爱笑的林羽2 天前
Mac M系列 安装 jadx-gui
前端·macos
筱宇***2 天前
Mac的web服务器
mysql·nginx·macos·php
Lucky me.2 天前
关于mac配置hdc(鸿蒙)
macos·华为·harmonyos