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 的路徑,重啟終端軟體(必須)。