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

相关推荐
想个名字想老半天17 小时前
uni 离线打包 ios,适用于自定义 ios系统最低适配 保姆级教程
macos·ios·cocoa
zzzb12345617 小时前
CC-Switch 全平台下载、安装与使用全指南(Windows/macOS/Linux)
linux·windows·macos·ai编程·cc-switch
BugShare17 小时前
macOS 原生定时任务应用,简洁优雅、所见所得
macos
CyL_Cly2 天前
localsend安卓手机下载 支持win/mac/ubuntu
android·macos·智能手机
A懿轩A2 天前
Thaw:让 macOS 菜单栏重获新生的免费全能管理工具,适配 macOS Tache 26.4.1 系统,Ice平替活跃版,解决 Ice 常见报错问题
macos
无效的名字2 天前
mac下安装openclaw
macos
00后程序员张2 天前
完整指南 iOS App上架到App Store的步骤详解
macos·ios·小程序·uni-app·objective-c·cocoa·iphone
开开心心loky2 天前
[OC 底层] (二)类与对象底层原理
macos·ios·objective-c·cocoa
谢斯2 天前
[esp-idf]macos 环境安装 v6.0
macos
idolao2 天前
ANSYS 2024安装教程 Windows版:License Manager配置+环境变量+Fluent汉化指南
macos