解决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就能正常投屏了。

相关推荐
FreeBuf_23 分钟前
苹果用户速更新!macOS存严重漏洞,用户隐私数据面临泄露风险
macos
Thomas214327 分钟前
macos deepctr_torch虚拟环境配置
macos
wxl78122728 分钟前
MacOS 运行CosyVoice
macos·cosyvoice·语音自然
lichong9511 小时前
【混合开发】vue+Android、iPhone、鸿蒙、win、macOS、Linux之video 的各种状态和生命周期调用说明
android·vue.js·macos
程序务虚论1 小时前
mac M1上安装windows虚拟机报错
windows·macos·parallels
今天头发还在吗4 小时前
【Go】:mac 环境下GoFrame安装开发工具 gf-cli——gf_darwin_arm64
macos·golang·go·gf-cli
小妖6667 小时前
MAC在home下新建文件夹报错“mkdir: test: Operation not supported”
macos
北冥有鱼被烹12 小时前
【问题解决】mac笔记本遇到鼠标无法点击键盘可响应处理办法?(Command+Option+P+R)
macos
Winter_Sun灬15 小时前
Mac开发第一步 - 安装Xcode
ide·macos·xcode
白玉cfc17 小时前
【iOS】push,pop和present,dismiss
macos·ios·cocoa