首页 > 其他分享 >mac scrcpy 报错 does not exist or is not a regular file,ERROR: Server connection failed

mac scrcpy 报错 does not exist or is not a regular file,ERROR: Server connection failed

时间:2024-10-24 20:59:19浏览次数:8  
标签:scrcpy app platform connection 报错 file tools Resources

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:/Applications/极空间.app/Contents/Resources/app.asar.unpacked/bin/platform-tools/scrcpy-server

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

标签:scrcpy,app,platform,connection,报错,file,tools,Resources
From: https://www.cnblogs.com/rab3it/p/18500946

相关文章