在Circle CI上运行排毒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)模拟器。
有什么想法吗?
Circle CI 2
排毒6.0.0
发布配置
App是React Native app,平台iOS
答案 0 :(得分:0)
我们将排毒更新为6.0.4,现在可以使用