设备"iPad Pro(12.9英寸)(第二代)"不在可用模拟器的列表中 [英] Device 'iPad Pro (12.9-inch) (2nd generation)' not in list of available simulators

查看:66
本文介绍了设备"iPad Pro(12.9英寸)(第二代)"不在可用模拟器的列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人会知道运行 fastlane快照

I was hoping someone would know what to do with this error I am receiving after running fastlane snapshot

错误设置值"["iPhone 11 Pro Max","iPhone 8 Plus","iPad Pro(12.9英寸)(第二代)","iPad Pro(12.9英寸)"(第三选项)设备"[!]设备"iPad Pro(12.9英寸)(第二代)"不在可用模拟器的列表中,例如"iPhone 8,iPhone 8 Plus,iPhone 11,iPhone 11 Pro,iPhone 11 Pro Max,iPad Pro(9.7英寸)",iPad Pro(11英寸),一代),Apple TV,Apple TV 4K,1080p),Apple Watch Series 4-40mm,Apple Watch Series 4-44mm,Apple Watch Series 5-40mm,Apple Watch Series 5-44mm'

Error setting value '["iPhone 11 Pro Max", "iPhone 8 Plus", "iPad Pro (12.9-inch) (2nd generation)", "iPad Pro (12.9-inch) (3rd generation)"]' for option 'devices' [!] Device 'iPad Pro (12.9-inch) (2nd generation)' not in list of available simulators 'iPhone 8, iPhone 8 Plus, iPhone 11, iPhone 11 Pro, iPhone 11 Pro Max, iPad Pro (9.7-inch), iPad Pro (11-inch), generation), Apple TV, Apple TV 4K, 1080p), Apple Watch Series 4 - 40mm, Apple Watch Series 4 - 44mm, Apple Watch Series 5 - 40mm, Apple Watch Series 5 - 44mm'

我仔细检查了Xcode(11.1).我确实在模拟器列表中有iPad Pro(12.9英寸)(两代),但是在调用fastlane快照时不知何故没有拿到它.我从10.3更新后,在Xcode中添加了两代iPad Pro(12.9英寸),因为Xcode为11.1删除了这两个模拟器.因此,我认为也许添加这两个更新后会导致此问题.

I have double checked Xcode (11.1). I do have the iPad Pro (12.9-inch) (both generations) in the simulator list but somehow it isn't picked up when calling fastlane snapshot. I added the two iPad Pro (12.9-inch) generations to Xcode after I updated from 10.3 as Xcode removed these two simulators for 11.1. So I think maybe adding these two post update is causing the issue.

我已经运行了 xcrun simctl list 来获取可用模拟器的列表,并可以确认它们是否存在于列表中.

I have ran xcrun simctl list to get the list of available simulators and can confirm they are present on the list.

如果有人有任何建议,请告诉我.

If anyone has any suggestions please let me know.

根据要求,快照文件:

设备(["iPhone 11 Pro Max","iPhone 8 Plus","iPad Pro(12.9英寸)(第二代)","iPad Pro(12.9英寸)(第三代)""])

devices(["iPhone 11 Pro Max", "iPhone 8 Plus","iPad Pro (12.9-inch) (2nd generation)","iPad Pro (12.9-inch) (3rd generation)"])

语言([["en-GB","en-US","fr-FR"]]

languages(["en-GB","en-US","fr-FR"])

方案("Example_UITests")output_directory("./fastlane/screenshots")clear_previous_screenshots(true)number_of_retries(0)reinstall_app(true)

scheme("Example_UITests") output_directory("./fastlane/screenshots") clear_previous_screenshots(true) number_of_retries(0) reinstall_app(true)

Xcode中安装的模拟器列表的图像:

Image of the list of simulators installed in Xcode:

推荐答案

要获得 iPad Pro(12.9英寸)(第二代)iOS 13.7,您需要执行以下操作:

xcrun simctl创建"iPad Pro(12.9英寸)(第二代)""com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9英寸-第二代-""com.apple.CoreSimulator.SimRuntime.iOS-13-7"

如果您有更新/较旧的iOS版本,只需编辑命令即可.

If you got a newer/older iOS version just edit the command.

这篇关于设备"iPad Pro(12.9英寸)(第二代)"不在可用模拟器的列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆