在 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