Mac m1 安装 scrcpy

前提:已经安装 brew

1. 设定 HOMEBREW_BOTTLE_DOMAIN(不设定的时候 ,会遇到报错  Bottle missing, falling back to the default domain..)

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

2. 设定中科大镜像源

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

3.更新brew

brew update -verbose

4.安装

brew install scrcpy

5.安装android相关

brew install android-platform-tools

6.手机开启开发者模式,USB调试,连接电脑

7.运行

scrcpy

就可以看到手机的页面在电脑上显示了

推荐阅读相关地址:

https://github.com/Genymobile/scrcpy

https://github.com/Genymobile/scrcpy#translations

https://github.com/Genymobile/scrcpy/issues/2247

http://mirrors.ustc.edu.cn/help/homebrew-bottles.html

  

原文地址:https://www.cnblogs.com/uoky/p/15226286.html