gpt4 book ai didi

ios - 从终端运行用于自动化的 Apple 仪器

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:08:21 28 4
gpt4 key购买 nike

如何从命令行为 iOS 自动化 (iPhone/iPad) 运行 apple instruments?我看到一些博客说下面的命令

instruments -w -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT

我没能运行它。

  • 有人运行过这个吗?
  • 如果您已经从终端运行它,能否分享一下步骤?

最佳答案

为了便于阅读,按参数分解:

mkdir TestResults

instruments
-D TestResults/TestTrace/theTrace.trace
-t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
/Absolute/Path/to/built/app/For/Simulator/AppName.app
-e UIARESULTSPATH TestResults/
-e UIASCRIPT Tests/some_test_file.js

关于ios - 从终端运行用于自动化的 Apple 仪器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9201234/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com