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"
相关推荐
_瑞21 小时前
AI Coding 那么快,为什么还需要 SDD?
人工智能·ios·ai编程
轩辕十四leo1 天前
Astrolabe(星盘):让 AI 看见自己写出的 UI
ios·ai编程
白玉cfc1 天前
熟悉Objective-C
开发语言·ios·objective-c
星辰即远方1 天前
字符串合法性检验
macos·ios·cocoa
末代iOS程序员华仔2 天前
KMP全栈开发:从Android到AI Agent的技术演进与实践
flutter·ios·figma
2501_916008892 天前
苹果上架工具怎么选 不用 Mac 上架 App Store 的几种方案
android·macos·ios·小程序·uni-app·iphone·webview
鹤卿1232 天前
谓词与正则表达式(OC)
ios·正则表达式·objective-c·xcode
wujf902 天前
Go 内存泄漏排查完整教程 (pprof)
开发语言·golang·xcode
秋雨梧桐叶落莳2 天前
iOS——3GShare项目总结
学习·macos·ios·objective-c·cocoa