【问题标题】:UI Testing is not supported on “My Mac” because it is running OS X 10.10.5 and UI Testing requires OS X 10.11 or later“我的 Mac”不支持 UI 测试,因为它运行的是 OS X 10.10.5,而 UI 测试需要 OS X 10.11 或更高版本
【发布时间】:2015-12-17 09:31:49
【问题描述】:

我向现有 OS X 应用程序添加了 UI 测试,但现在收到以下错误: UI Testing is not supported on “My Mac” because it is running OS X 10.10.5 and UI Testing requires OS X 10.11 or later.

我按照本指南添加它: http://savvyapps.com/blog/how-to-implement-ui-testing-in-an-existing-ios-app

File → New → Target and click Test under the OS X template categories, and select OS X UI Testing Bundle

当我刚刚运行 XCode 7 时,我必须将我的操作系统升级到 Gold Master 副本,这似乎很奇怪。我应该降级到 XCode 6 吗?还是有其他解决方案?

【问题讨论】:

    标签: xcode macos xctest xcode-ui-testing


    【解决方案1】:

    在大约 4:00 的 Apple 的 WWDC15 video on UI Testing 中,他们展示了一张幻灯片,说明 UI 测试依赖于新的操作系统功能——需要 OS X 10.11。

    它似乎与可访问性和隐私保护有关。您必须允许辅助功能控制您的计算机才能使其正常工作。可访问性是新 UI 测试框架的关键依赖项。

    如果您能够进行 UI 录制,UI 测试会更好。根据苹果的Xcode overview page:

    录制 UI 测试需要:

    • 项目的 UI 测试目标
    • UI 元素的辅助功能信息
    • OS X v10.11 或更高版本
    • iOS 9 或更高版本

    【讨论】:

      猜你喜欢
      • 2015-11-20
      • 2016-12-22
      • 1970-01-01
      • 1970-01-01
      • 2016-10-25
      • 1970-01-01
      • 1970-01-01
      • 2019-02-02
      • 2011-01-13
      相关资源
      最近更新 更多