【问题标题】:Detox doesn't start iOS simulator on Circle CI排毒不会在 Circle CI 上启动 iOS 模拟器
【发布时间】:2018-06-17 20:01:34
【问题描述】:

在 Circle CI 上运行 detox UI 测试时,它在启动模拟器时卡住了。

如果我根本不预启动模拟器,测试就会卡住

detox info 5: Booting device DDB155A3...

如果我尝试使用 xcrun instruments -w "iPad Air 2 (11.2)" 预启动模拟器,预启动会失败并显示:

^D^DCoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode-9.2.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
instruments[700]: Waiting for device to boot...
Instruments Usage Error: No template (-t) specified
instruments, version 9.2 (63753)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
Exited with code 255

并且测试卡在与没有预启动相同的错误上。

如果我尝试使用xcrun simctl boot "iPad Air 2"(这是https://discuss.circleci.com/t/cant-find-simulator-xcode-9/16733 推荐的)预启动模拟器,测试会卡在:

detox info 1: Searching for device matching iPad Air 2...

xcrun 的模拟器列表显示有 iPad Air 2 (11.2) 模拟器。

有什么想法吗?

圈子 CI 2

排毒 6.0.0

发布配置

App 是 React Native 应用,平台 iOS

【问题讨论】:

    标签: react-native ios-simulator circleci detox


    【解决方案1】:

    我们将 detox 更新到 6.0.4,现在可以使用了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-08
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 2014-01-29
      • 2014-10-19
      • 1970-01-01
      • 2018-05-11
      相关资源
      最近更新 更多