【问题标题】:Build with release configuration but automation tracetemplate launch app from simulator show target app not frontmost使用发布配置构建,但从模拟器显示目标应用程序不是最前面的自动化跟踪模板启动应用程序
【发布时间】:2013-12-02 10:42:55
【问题描述】:

Xcode 版本为 5.0.2,最新 iOS 系统。

我将run的scheme构建配置改为release,然后点击Run构建app,之后:

  1. 我打开仪器并选择自动化跟踪模板,选择目标应用程序
  2. 然后添加一个新脚本
  3. 点击录制按钮
  4. 应用从模拟器启动后,仪器显示错误消息:目标应用不在最前面;

但是当我将 run 的方案构建配置更改为调试时,它工作正常。

注意:使用 iOS 开发人员进行代码签名调试和发布。

【问题讨论】:

    标签: ios ui-automation ios-ui-automation


    【解决方案1】:

    在 XCode 中(不在 Instruments 中)选择 Product > Profile,如果编译后,选择自动化。等待应用程序启动,然后停止轨道:您应该能够从编辑器中运行它。如果没有,请从库中删除 Instruments 和 iPhone Simulator 文件夹并重新启动 Instruments。

    【讨论】:

    • 感谢您的回答,我已经用您的步骤解决了这个问题。
    猜你喜欢
    • 2013-06-04
    • 1970-01-01
    • 2020-02-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多