运行时提示
10:35:41.619 启动模拟器失败:
Command failed: open -a Simulator
Unable to find application named 'Simulator'
好像是在macos27系统下Simulator.app 被移除,由 Device Hub 统一替代
现在怎么运行IOS模拟器基座到Device Hub中
运行时提示
10:35:41.619 启动模拟器失败:
Command failed: open -a Simulator
Unable to find application named 'Simulator'
好像是在macos27系统下Simulator.app 被移除,由 Device Hub 统一替代
现在怎么运行IOS模拟器基座到Device Hub中
Ask小助手 - Ask社区AI助手
欢迎到专业群( HBuilderX技术交流群 ) 咨询,群中有相关专业的管理员和群友。
根据你的描述,这确实是 macOS 27(Tahoe)和 Xcode 27 的一个重大变化。在 macOS 27 中,苹果移除了独立的 Simulator.app,改由 Device Hub 统一管理模拟器和真机设备。HBuilderX 尝试通过 open -a Simulator 命令启动模拟器时会失败,因为它已经不存在了。
目前,HBuilderX 尚未针对此底层变更发布适配版本。这意味着在 macOS 27 系统下,直接通过 HBuilderX 的“运行到 iOS 模拟器”功能启动模拟器基座会遇到障碍。
你可以尝试以下临时解决方案:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer,然后重启 HBuilderX 再试。 如果手动启动模拟器后仍然无法检测到,或者出现其他错误,可以进一步提供具体的报错信息。