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
Xcode 9 support on macOS 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.app
and move it to /Applications
directory. 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 /Applications
as 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 版本,并且现在可以公开发布:
Leave Xcode.app (Xcode 9) as is in the
/Applications
directory. 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 toXcode 10.app
and move it to/Applications
directory.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
/Applications
directory.
将 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 复制到,重命名并移动到目录。~/Desktop
Xcode 10.app
/Applications
第二种选择是将 Mac App Store 安装的副本更新到 Xcode 10 并从 Apple Developer Downloads 下载 Xcode 9.4.1。同样,将下载的文件重命名为 Xcode 9 并将其移动到
/Applications
目录。