美文网首页
Xcode 下载并安装模拟器

Xcode 下载并安装模拟器

作者: Smallwolf_JS | 来源:发表于2024-03-05 14:30 被阅读0次

Xcode更新之后,模拟器也需要跟着更新,但是自动下载模拟器经常失败
所以提供手动下载的方式
方式1
通过苹果提供的命令下载

 xcodebuild -downloadPlatform iOS

方式2
通过浏览器或者下载器下载
下载链接:https://developer.apple.com/download/all/?q=simulator

安装模拟器
苹果给出了安装的命令

sudo xcode-select -s /Applications/Xcode.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add xxxx_Simulator_Runtime.dmg 

即可直接安装

相关文章

网友评论

      本文标题:Xcode 下载并安装模拟器

      本文链接:https://www.haomeiwen.com/subject/vmrdzdtx.html