关于android:全新Mac安装STF全记录

3次阅读

共计 1099 个字符,预计需要花费 3 分钟才能阅读完成。

STF 介绍

STF 是一个挪动设施群控计划的开源实现,原名是 OpenSTF,由 CyberAgent, HeadSpin 以及其余贡献者等反对。起初就由 device farm 接手了,并改名为 @devicefarmer/stf

装置环境

  • 硬件:Mac Air M1 芯片
  • 操作系统版本:Mac Ventura

装置步骤

应用 app store 装置 xcode

装置 brew

拜访 https://brew.sh/ 装置,即

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

装置 npm

先装置 nvm,而后装置 node 8.9.1 版本

brew install nvm
nvm install 8.9.1
brew install python3

装置 stf

依照 https://github.com/DeviceFarm… 提供的指引装置,

brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config cmake
npm install -g @devicefarmer/stf --python=python2.7

最开始是执行以下命令装置 @devicefarmer/stf 的,

npm install -g @devicefarmer/stf

然而报错了

Python executable "python" is v3.9.6, which is not supported by gyp

前面通过排查,有人说要加 –python=python2.7 参数

碰到的其余问题

xcode-select: error

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

解决办法:

1. 装置 Xcode
2. 执行 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

碰到 npmERR!

npmERR! fatal: unable to access 'https://github.com/fintechx/swagger-node-runner.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60

解决办法也很简略,重试屡次。

正文完
 0