Mac/IOS Xcode Instruments资源统计及自动化相关

一、遇到的问题

(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"
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

rs勿忘初心

您的鼓励将是我的最大创动原动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值