macOS Mojave 上的 Xcode 9 支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52470524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:48:25  来源:igfitidea点击:

Xcode 9 support on macOS Mojave

xcodemacos-mojave

提问by mikro098

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。

回答by Nimesh Neema

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 DMGfrom 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.appand move it to /Applicationsdirectory. You can also add drag the Xcode 9.app file to Dock to add a shortcut.

下载后,双击挂载 DMG,将 Xcode.app 从磁盘映像复制到桌面,重命名Xcode 9.app并移动到/Applications目录。您还可以添加将 Xcode 9.app 文件拖动到 Dock 以添加快捷方式。

Note: I'm not sure about expect version number compatibility, thus recommended to install the last release of Xcode 9, i.e. 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. You can now take either one of the below mentioned approaches. However, before proceeding, consider deleting the Xcode_10.app from /Applicationsas it is a GM build and the public release for the same is now available:

正如您在评论中提到的,您目前已从 Mac App Store 安装了 Xcode 9,并从Apple Developer下载了 Xcode 10 的 GM 版本。您现在可以采用以下任一方法。但是,在继续之前,请考虑从 Xcode_10.app 中删除,/Applications因为它是 GM 版本,并且现在可以公开发布:

  1. Leave Xcode.app (Xcode 9) as is in the /Applicationsdirectory. Mac App Store will show that an update is available. Do not install the update from the Mac App Store. However, make sure that the version of Xcode 9 is the last released version, i.e. Xcode 9.4.1. Download Xcode 10 public build from Apple Developer Downloadusing thislink. Copy the Xcode.app from the downloaded DMG to ~/Desktop, rename it to Xcode 10.appand move it to /Applicationsdirectory.

  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. Similarly, rename the downloaded file to Xcode 9 and move it to /Applicationsdirectory.

  1. 将 Xcode.app (Xcode 9) 保留在/Applications目录中。Mac App Store 将显示有可用更新。不要从 Mac App Store 安装更新。但是,请确保 Xcode 9 的版本是最新发布的版本,即 Xcode 9.4.1。使用链接从Apple Developer Download下载 Xcode 10 public build 。将下载的 DMG 中的 Xcode.app 复制到,重命名并移动到目录。~/DesktopXcode 10.app/Applications

  2. 第二种选择是将 Mac App Store 安装的副本更新到 Xcode 10 并从 Apple Developer Downloads 下载 Xcode 9.4.1。同样,将下载的文件重命名为 Xcode 9 并将其移动到 /Applications目录。