在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)模拟器。
有任何想法吗?
圈CI 2
排毒6.0.0
发布配置
应用程序是React Native应用程序,平台iOS
我们将排毒更新到6.0.4,现在可以使用了