Xcode报错:The com.apple.CoreSimulator runtime is not available.
Xcode报错:The com.apple.CoreSimulator runtime is not available.

Xcode报错:The com.apple.CoreSimulator runtime is not available.

在使用Xcode时,因为内存不足导致异常重启。重启Mac后,Xcode运行模拟器,提示:

The com.apple.CoreSimulator.SimRuntime.iOS-17-5 simulator runtime is not available.
runtime profile not found using "System" match policy Download the com.apple.CoreSimulator.SimRuntime.iOS-17-5 simulator runtime from the Xcode Settings. Please also attach the results from running: xcrun simctl diagnose when reporting this issue.

该报错表示 iOS 17.5 模拟器运行时(runtime)丢失或损坏。通常发生在以下几种情况:

1、mac意外重启或断电时,Xcode 的 runtime 文件(放在 /Library/Developer/CoreSimulator/Profiles/Runtimes/)被破坏;

2、Xcode 更新中断,导致 runtime 没有正确安装;

3、系统清理工具(比如 CleanMyMac)误删了模拟器的运行环境。

解决方案

重启Mac,问题得到解决。

参考文章

1、Xcode device Unavailable, runtime profile not found:https://stackoverflow.com/questions/44180364/xcode-device-unavailable-runtime-profile-not-found

2、Resolving a “Simulator runtime is not available” error:https://developer.apple.com/forums/thread/751135

   

如果您认为这篇文章给您带来了帮助,您可以在此通过支付宝或者微信打赏网站开发者。

欢迎加入我们的 微信交流群QQ交流群,交流更多精彩内容!
微信交流群二维码 QQ交流群二维码

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注