无法运行iOS UITest Xcode 7.2

时间:2016-01-14 08:37:17

标签: ios xcode swift xcode-ui-testing

我最近尝试在此视频后使用Apple新的UI测试功能:https://developer.apple.com/videos/play/wwdc2015-406/

记录步骤和代码生成似乎使用模拟器完美无缺,令人印象深刻。我使用Swift。

但我无法执行测试。当我尝试时,我收到以下消息:

The error

iOS 9.2是目前我可以选择非beta Xcode的最新选项。

我试过了:

  • 选择另一个模拟器。
  • 将目标测试项目的部署目标从9.0更改为9.2

有什么想法吗?

挖掘日志:

09:32:45.245 Xcode[33224:411953] Beginning test session BEBE62A0-AD92-4E2F-8596-27B9A578B2C9 with Xcode 7C68 on target <DVTiPhoneSimulator: 0x7f80bfcd9ea0> {
        SimDevice: SimDevice : iPhone 4s (812CEEC2-79A5-43B4-B500-11C894DE66DE) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-4s } runtime={ SimRuntime : 9.2 (13C75) - com.apple.CoreSimulator.SimRuntime.iOS-9-2 }
} (9.2 (13C75))
09:32:45.245 Xcode[33224:411953] Launching with Xcode.DebuggerFoundation.Launcher.LLDB
09:32:45.245 Xcode[33224:411953] Initializing test infrastructure.
09:32:45.245 Xcode[33224:411953] Creating the connection.
09:32:45.245 Xcode[33224:411953] Listening for proxy connection request from the test bundle (all platforms)
09:32:45.245 Xcode[33224:411953] Resuming the connection.
09:32:45.245 Xcode[33224:411956] Test connection requires daemon assistance.
09:32:45.254 Xcode[33224:411956] Checking test manager availability..., will wait up to 120s
09:32:45.254 Xcode[33224:411956] Starting test session with ID <__NSConcreteUUID 0x7f80c21a97a0> BEBE62A0-AD92-4E2F-8596-27B9A578B2C9
09:32:45.273 Xcode[33224:411957] Launch session started, setting a disallow-finish-token on the run operation.
09:32:45.319 Xcode[33224:411954] Test operation failure: iPhone 4s runs iOS 9.2, which is lower than XCTRunner’s minimum deployment target. Change your project’s minimum deployment target or upgrade iPhone 4s’s version of iOS.
09:32:45.319 Xcode[33224:411954] testmanagerd handled session request.
09:32:45.319 Xcode[33224:411954] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=3 "iPhone 4s runs iOS 9.2, which is lower than XCTRunner’s minimum deployment target. Change your project’s minimum deployment target or upgrade iPhone 4s’s version of iOS." UserInfo={NSLocalizedDescription=iPhone 4s runs iOS 9.2, which is lower than XCTRunner’s minimum deployment target. Change your project’s minimum deployment target or upgrade iPhone 4s’s version of iOS.} didCancel: 1

0 个答案:

没有答案