一、遇到的问题
(1)Instruments启动采集某个应用的资源时,提示"Instruments wants permission to analyze other processes. ",意思是需要输入密码,给我们的自动化采集带来了一定的困难。
解决方法:
(1)查看状态
DevToolsSecurity -status
# 预期输出
Developer mode is currently disabled.
(2)开启授权
DevToolsSecurity -enable
# 预期输出
Developer mode is now enabled.
(2)xcode-select --install选择安装安装失败:下载失败网络问题
手动下载安装:Link(需要登录苹果开发者账号,免费注册就行),看着需要占用挺大的词盘空间。
(3)Mac 终端 brew问题解决:Failed to connect to github.com port 443: Operation timed out
Mac 终端 Git 问题解决:Failed to connect to github.com port 443: Operation timed out - 简书
(4)在mac上使用brew安装软件发生错误:mac brew install Error: No available formula with the name “*“的解决办法
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
brew update
(5)Error: Failure while executing; `tar --extract --no-same-owner
国内 Mac 安装 Homebrew 可能会跳的坑一览 - 知乎
(6)appium连接ios的模拟器时报错:"Could not create simulator with name and runtime id xxx"
连接参数试着添加: "udid": auto,完整的参数如下:(其中app值可以通过xcode的编译日志输出查看)
{
"platformName": "iOS",
"platformVersion": "10.3",
"deviceName": "iPhone",
"automationName": "XCUITest",
"app": "/Users/rs/Library/Developer/Xcode/DerivedData/TestApp-ddqowtgjmsecambplhmopjwfuycg/Build/Products/Debug-iphonesimulator/TestApp.app",
"udid": "930ACFDB-6BB0-4F31-B53A-570BE03581AB"
}