mac scrcpy 报错 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac与极空间冲突)

scrcpy mac与极空间冲突

问题:

➜  ~ scrcpy
scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  8AJY0LU0Q                       device  Pixel_3_XL
stat: No such file or directory
ERROR: '/Applications/极空间.app/Contents/Resources/app.asar.unpacked/bin/platform-tools/scrcpy-server' does not exist or is not a regular file
ERROR: Server connection failed

解决:

➜  ~ echo $SCRCPY_SERVER_PATH
/Applications/极空间.app/Contents/Resources/app.asar.unpacked/bin/platform-tools/scrcpy-server

➜  ~ echo $PATH
****;/Applications/极空间.app/Contents/Resources/app.asar.unpacked/bin/platform-tools:/usr/local/Caskroom/android-platform-tools/35.0.2/platform-tools:/Applications/极空间.app/Contents/Resources/app.asar.unpacked/bin/platform-tools

➜  ~ vi ~/.zshrc
//重新设置 platform-tools 和 scrcpy-server 的路径,重启终端软件(必须)。

posted @ 2024-10-24 21:08  rab3it  阅读(61)  评论(0编辑  收藏  举报