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

相关推荐
友善的猴子7 小时前
Adobe Photoshop 2025 Mac中文 Ps图像编辑
macos·adobe·photoshop
伊织code8 小时前
macOS Chrome - 打开开发者工具,设置 Local storage
chrome·macos·设置·开发者工具·local storage
独隅9 小时前
在 macOS 上修改 最大文件描述符限制(Too many open files) 和 网络端口相关参数 需要调整系统级配置的详细步骤
网络·macos
追风林12 小时前
mac 解压 nsz 文件
macos
斑驳的岁月21 小时前
MacOs java环境配置+maven环境配置踩坑实录
java·macos·maven
18538162800余。1 天前
碰一碰发视频源码开发深度解析,定制化开发
macos·objective-c·cocoa
returnShitBoy1 天前
iOS 上的内存管理是如何处理的?
macos·ios·cocoa
友善的猴子2 天前
AlDente Pro for Mac电脑 充电限制保护工具
macos·电脑
世界尽头与你2 天前
MacOS红队常用攻击命令
安全·macos·网络安全
干净的坏蛋2 天前
mac 终端 code 命令打开 vscode,修改 cursor占用
ide·vscode·macos