简体   繁体   English

macOS Mojave 上的 Xcode 9 支持

[英]Xcode 9 support on macOS Mojave

With new macOS Mojave coming out tomorrow (24 September 2018), is it going to support Xcode 9?明天(2018 年 9 月 24 日)将推出新的 macOS Mojave,它是否会支持 Xcode 9?

We could not switch one of our projects to Xcode 10 because of some outdated dependencies.由于一些过时的依赖关系,我们无法将我们的项目之一切换到 Xcode 10。

Yes .是的

You can use Xcode 9 (last release is Xcode 9.4.1) on macOS Mojave.您可以在 macOS Mojave 上使用 Xcode 9(最新版本是 Xcode 9.4.1)。

If you are upgrading from macOS High Sierra, you can choose to not update your copy of Xcode installed from the Mac App Store.如果您是从 macOS High Sierra 升级,您可以选择不更新从 Mac App Store 安装的 Xcode 副本。

If you have already upgrade your App Store installed copy of Xcode to Xcode 10, you can download Xcode 9.4.1 DMG from Apple Developer Downloads .如果您已经将 App Store 安装的 Xcode 副本升级到 Xcode 10,您可以从Apple Developer Downloads下载Xcode 9.4.1 DMG

Once downloaded, double click to mount the DMG, copy Xcode.app from the disk image to Desktop, rename it to Xcode 9.app and move it to /Applications directory.下载后,双击挂载 DMG,将 Xcode.app 从磁盘映像复制到桌面,将其重命名为Xcode 9.app并将其移动到/Applications目录。 You can also add drag the Xcode 9.app file to Dock to add a shortcut.您还可以添加将 Xcode 9.app 文件拖动到 Dock 以添加快捷方式。

Note : I'm not sure about expect version number compatibility, thus recommended to install the last release of Xcode 9, ie Xcode 9.4.1.注意:我不确定期望的版本号兼容性,因此建议安装 Xcode 9 的最新版本,即 Xcode 9.4.1。


As mentioned in your comment , you currently have Xcode 9 installed from the Mac App Store and a GM build of Xcode 10 downloaded from Apple Developer .正如您在评论中提到的,您目前已从 Mac App Store 安装了 Xcode 9,并从Apple Developer下载了 Xcode 10 的 GM 版本。 You can now take either one of the below mentioned approaches.您现在可以采用以下任一方法。 However, before proceeding, consider deleting the Xcode_10.app from /Applications as it is a GM build and the public release for the same is now available:但是,在继续之前,请考虑从/Applications删除 Xcode_10.app,因为它是 GM 版本,并且现在可以公开发布:

  1. Leave Xcode.app (Xcode 9) as is in the /Applications directory.将 Xcode.app (Xcode 9) 保留在/Applications目录中。 Mac App Store will show that an update is available. Mac App Store 将显示有可用更新。 Do not install the update from the Mac App Store.不要从 Mac App Store 安装更新。 However, make sure that the version of Xcode 9 is the last released version, ie Xcode 9.4.1.但是,请确保 Xcode 9 的版本是最新发布的版本,即 Xcode 9.4.1。 Download Xcode 10 public build from Apple Developer Download using this link.使用链接从Apple Developer Download下载 Xcode 10 public build。 Copy the Xcode.app from the downloaded DMG to ~/Desktop , rename it to Xcode 10.app and move it to /Applications directory.将 Xcode.app 从下载的 DMG 复制到~/Desktop ,将其重命名为Xcode 10.app并将其移动到/Applications目录。

  2. Second alternative would be to update the Mac App Store installed copy to Xcode 10 and download Xcode 9.4.1 instead from Apple Developer Downloads.第二种选择是将 Mac App Store 安装的副本更新到 Xcode 10 并从 Apple Developer Downloads 下载 Xcode 9.4.1。 Similarly, rename the downloaded file to Xcode 9 and move it to /Applications directory.同样,将下载的文件重命名为 Xcode 9 并将其移动到/Applications目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM