[英]How to find SQLite db on iPhone 6s Simulator in Macbook?
[英]Error: Can't find a simulator to match with “iPhone 6s”
幾周前排毒工作正常 - 我沒有更新任何東西,現在我在嘗試測試時不斷收到以下錯誤(它構建得很好):
Error: Can't find a simulator to match with "iPhone 6s", run 'xcrun simctl list' to list your supported devices.
It is advised to only state a device type, and not to state iOS version, e.g. "iPhone 7"
at AppleSimUtils.findDevicesUDID (/Users/user/Documents/work/app/e2e/node_modules/detox/src/devices/ios/AppleSimUtils.js:47:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
如果我運行 applesimutils --list --byName "iPhone 6s" 它會顯示 2 個設備:
[
{
"deviceType" : {
"name" : "iPhone 6s",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "A87C2EF9-95D2-4562-99BE-E1A39A63ABB1",
"os" : {
"buildversion" : "17B102",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"isAvailable" : true,
"name" : "iOS 13.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-13-2",
"version" : "13.2.2"
}
},
{
"deviceType" : {
"name" : "iPhone 6s",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "F5A2C1D3-5416-431C-A9B5-6054A238283D",
"os" : {
"buildversion" : "16E226",
"bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 12.2.simruntime",
"isAvailable" : true,
"name" : "iOS 12.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
"version" : "12.2"
}
}
]
我嘗試通過 xcode 和 xcrun 添加和刪除模擬器,但似乎沒有任何效果。
版本:
Mac 10.14.6 applesimutils 版本 0.7.6 detox 14.3.4 xcode 11.2.1
嘗試將 Detox 升級到最新版本( 14.7.1
,截至 2019 年 11 月 15 日),一個月前在14.5.0發布的14.5.0
中修復了模擬器選擇邏輯。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.