欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

程序员文章站 2022-05-31 07:58:02
...

在下载其他系统的模拟器安装成功后,运行时提示以下内容.

runtime profile not found
Download the com.apple.CoreSimulator.SimRuntime.iOS-12-4 simulator runtime from the Components section in Xcode's Preferences.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

这是由于没有文件权限导致的。

首先,使用快捷键:

command + shift + G

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

打开模拟器的路径,前往.

/Library/Developer/CoreSimulator/Profiles/Runtimes

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

右键 -> 查看简介.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

打开就是下图.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

先解锁,解锁时需要填写你电脑的锁屏密码,再点击左下角的 ➕.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

选中打码部分(用户名),点击选择.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

点击只读,会弹出提示框,选择读与写,再点击右下角的锁,将锁关上.

Xcode Simulator无法安装,提示The com.apple.CoreSimulator.SimRuntime.XXX simulator runtime is not available

最后,重启Xcode和Mac之后再运行就OK了.