Workaround: Xcode27 下载iOS 27.0 Simulator

问题

解压缩Xcode_27_beta.xip后正常安装,但是发现下载iOS 27 runtime的时候一直卡住,切了各种环境都无效果。

方案

基于xcodebuild安装

切换默认的xcode

  • 参考Apple官方的文档https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components#Download-and-install-new-hardware-support-in-between-Xcode-releases

  • Xcode_27_beta.xip默认解压后叫Xcode-beta.这里我重命名叫 Xcode27-beta,为了方便区别主Xcode

  • Xcode27-beta拖进/Applications文件夹

  • 下面命令开始切换默认xcode

shell 复制代码
xcode-select -s /Applications/Xcode27-beta.app 
xcodebuild -runFirstLaunch -checkForNewerComponents

使用xcodebuild下载

  • 官方文档https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components#Download-Xcode-components-from-the-command-line

执行

shell 复制代码
xcodebuild -downloadPlatform iOS -architectureVariant arm64

会输出

shell 复制代码
Finding content...
Downloading iOS 27.0 Simulator (24A5355p) (arm64): 70.2% (5.89 GB of 8.39 GB)
  • 注意,要指定arm64。下面是我没有指定然后告诉我找不到
rust 复制代码
xcodebuild -downloadPlatform iOS -exportPath ~/Downloads

Automatically resolved architecture variant for platform iOS as 'universal'.
No matching downloadable found for platform: iOS
No downloadable was found for iOS.

下载完成后,实际上他直接帮我安装好了。我在下载目录没看到他。因此下面的步骤不需要了

使用xcodebuild安装下载的runtime image

  • 官方文档https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components#Install-downloaded-packages-from-the-command-line
shell 复制代码
xcodebuild -importPlatform "~/Downloads/iOS 27 beta Simulator Runtime.dmg"
相关推荐
QWsin7 小时前
「轻漾」App隐私政策
ios·个人开发
season_zhu7 小时前
近段时间,AI加持下,我的开发感悟
ios
用户38034165882978 小时前
Flutter 迁 SwiftUI:AI 把页面"搬"过来只用了两周,我们补结构花了两个月
ios·swift
茶底世界之下11 小时前
四角变换后的最小包围视口,为什么不能只把宽高取整?
ios·swift
茶底世界之下11 小时前
羽毛颜色已经很鲜艳,还要继续加色吗?用 Awaking 试一次减饱和
前端·ios·运营
天神哥哥啊14 小时前
cocos联调注意事项-IOS
ios·cocoa·xcode
终端安全笔记14 小时前
配置锁状态那一栏查的是什么:报告里几项各自指向什么风险
android·前端·安全·ios
Carson带你学Android15 小时前
OpenAI Dots 登陆手机端:手机上派任务,AI 在云端写代码
android·ios
老李IT笔记1 天前
设备指纹由哪几个字段拼出来:换一块主板会变成新设备
ios·智能手机
andyweike1 天前
iOS App 测试
ios·测试·ad hoc·分发