简体   繁体   English

创建新的模拟器命令行-无效的运行时:com.apple.CoreSimulator.SimRuntime.iOS-13

[英]Creating New Simulator Command Line- Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-13

Trying to create a new iOS simulator via the command line I ran尝试通过我运行的命令行创建一个新的 iOS 模拟器

$ xcrun simctl list devicetypes runtimes

which gave me这给了我

iPhone SE (1st generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)

But when I tried to install the simulator I keep getting但是当我尝试安装模拟器时,我不断得到

Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-13运行时无效:com.apple.CoreSimulator.SimRuntime.iOS-13

I tried我试过了

$ xcrun simctl create 'iPhone SE (1st generation)' com.apple.CoreSimulator.SimDeviceType.iPhone-SE com.apple.CoreSimulator.SimRuntime.iOS-13

and

xcrun simctl create "iPhone SE (1st generation)" "com.apple.CoreSimulator.SimDeviceType.iPhone-SE" "com.apple.CoreSimulator.SimRuntime.iOS-13"

I also tried iOS 14 but the same issue occurred我也试过 iOS 14 但发生了同样的问题

$ xcrun simctl create ... com.apple.CoreSimulator.SimRuntime.iOS-14 

Found the answer here这里找到了答案

run

$ xcrun simctl create "MY-iPhone-SE-1stGen" "iPhone SE (1st generation)" iOS13

which will return a device uuid like这将返回一个设备uuid,如

47F03253-EAA7-4682-80BA-C6769471993D

then to boot up the simulator you have use the device uuid to run然后启动你使用设备 uuid 运行的模拟器

$ xcrun simctl boot 47F03253-EAA7-4682-80BA-C6769471993D

In the Xcode device drop down list you will see在 Xcode 设备下拉列表中,您将看到

MY-iPhone-SE-1stGen MY-iPhone-SE-1stGen

FYI you can use whatever name you want in place of MY-iPhone-SE-1stGen仅供参考,您可以使用任何您想要的名称来代替MY-iPhone-SE-1stGen

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode 7 beta 4 构建错误 - com.apple.CoreSimulator.SimRuntime.iOS-9-0 - Xcode 7 beta 4 build error - com.apple.CoreSimulator.SimRuntime.iOS-9-0 调试ios命令行中的问题 - Xcode - Debug ios Problems in command line- Xcode iPhone 8和X的模拟器错误:无法查找服务com.apple.CoreSimulator.host_support:0x3 - Simulator error for iPhone 8 and X : Unable to lookup service com.apple.CoreSimulator.host_support: 0x3 如何修复博览会开始抛出“模拟器已安装但被标识为‘com.apple.CoreSimulator.SimulatorTrampoline’;不知道那是什么” - How to fix expo start throwing "Simulator is installed but is identified as 'com.apple.CoreSimulator.SimulatorTrampoline'; dont know what that is" 离子模拟ios(domain = com.apple.CoreSimulator.SimError,code = 163) - ionic emulate ios (domain=com.apple.CoreSimulator.SimError, code=163) Apple 的新指南:“使用 Apple 登录”是仅适用于 iOS 13 还是我们可以在 iOS 10 或更低版本的设备上使用它? - New guide line for Apple : "Sign in with Apple" is it only for iOS 13 or we can use it on iOS 10 or below devices? com.apple.root.default-qos 中的 iOS 13 SIGABRT - iOS 13 SIGABRT in com.apple.root.default-qos 有没有办法从命令行关闭iOS模拟器? - Is there a way to close the iOS Simulator from the command line? XCode 6 Beta 4错误 - “运行时遇到错误(Domain = com.apple.CoreSimulator.SimError,Code = 146)” - XCode 6 Beta 4 error - “An error was encountered while running (Domain = com.apple.CoreSimulator.SimError, Code = 146)” 如何读取 swift 5 (iOS) 中的 JSON 文件,该文件由模拟器保存在 Library/Developer/CoreSimulator/Devices/ - How to read a JSON file in swift 5 (iOS) saved by the simulator at Library/Developer/CoreSimulator/Devices/
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM