在 High Sierra 10.13.6 上将 Xcode 10.1 更新到 10.2

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55578496/
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:56:14  来源:igfitidea点击:

Update Xcode 10.1 to 10.2 on High Sierra 10.13.6

xcodemacos-high-sierra

提问by Franky

I'm trying to update Xcode 10.1 to 10.2 on my High Sierra 10.13.6 version.

我正在尝试在我的 High Sierra 10.13.6 版本上将 Xcode 10.1 更新到 10.2。

The App Store window shows the update button, but the problem is after hitting that button, the circle on the upper-left corner is just rotating for hours and nothing else happens!

App Store 窗口显示更新按钮,但问题是点击该按钮后,左上角的圆圈只是旋转了几个小时,没有其他任何反应!

enter image description here

在此处输入图片说明

Since the difference between the two versions is not that huge, the update naturally must be downloaded and installed after some time, but in effect it's not that way!

既然两个版本的差别不是那么大,更新自然要过一段时间才能下载安装,但实际上并不是这样!

How to solve that issue, please?

请问这个问题怎么解决?

采纳答案by vadian

The difference between the two versions isnotthat hugefor example Swift 5.0 allows to build projects without the embedded Swift Libraries.

这两个版本之间的差异不是那巨大的,例如雨燕5.0允许建立一个没有嵌入式斯威夫特库项目。

Xcode 10.2 doesn't run in High Sierra. It requires macOS 10.14.3

Xcode 10.2 不能在 High Sierra 中运行。它需要 macOS 10.14.3

回答by Tripod

I am using Xcode10.2 on High Sierra 10.13.6, and can build several projects for my iPhone 5s and 6s Plus which working on iOS12.2. The process is similar to Damnum's.

我在 High Sierra 10.13.6 上使用 Xcode10.2,并且可以为我在 iOS12.2 上运行的 iPhone 5s 和 6s Plus 构建多个项目。该过程类似于 Damnum 的。

  1. Change the name of working Xcode like Xcode10.1.
  2. Download Xcode 10.2 and copy it into Applications folder. (The name is of course Xcode.)
  3. Edit Xcode.app/Contents/Info.plist and change the Minimum System Version to 10.13.6 with Xcode10.1
  4. Edit Xcode.app/Contents/Applications/FileMerge/Contents/Info.plist and change the Minimum System Version to 10.13.6 with Xcode10.1
  5. Edit Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist and change the Minimum System Version to 10.13 with Xcode10.1
  6. Launch Xcode (it is 10.2) and install the rest of items.
  7. Now you can use iOS12.2 features in the Xcode.
  1. 更改工作 Xcode 的名称,如 Xcode10.1。
  2. 下载 Xcode 10.2 并将其复制到 Applications 文件夹中。(名字当然是Xcode。)
  3. 编辑 Xcode.app/Contents/Info.plist 并使用 Xcode10.1 将最低系统版本更改为 10.13.6
  4. 编辑 Xcode.app/Contents/Applications/FileMerge/Contents/Info.plist 并使用 Xcode10.1 将最低系统版本更改为 10.13.6
  5. 编辑 Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist 并使用 Xcode10.1 将最低系统版本更改为 10.13
  6. 启动 Xcode(它是 10.2)并安装其余项目。
  7. 现在您可以在 Xcode 中使用 iOS12.2 功能。

I tested my own projects and several sample projects from iOS 12 App Development Essentials by Neil Smyth. All of them work fine on my devises including camera app.

我测试了我自己的项目和来自 Neil Smyth 的 iOS 12 App Development Essentials 的几个示例项目。所有这些都在我的设备上运行良好,包括相机应用程序。

回答by Damnum

Follow these steps:

按着这些次序:

  1. Download Xcode 10.2 via this link (you need to be signed in with your Apple Id): https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_10.2/Xcode_10.2.xipand install it
  2. Edit Xcode.app/Contents/Info.plist and change the Minimum System Version to 10.13.6
  3. Do the same for Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist (might require a restart of Xcode and/or Mac OS to make it open the simulator on run)
  4. Replace Xcode.app/Contents/Developer/usr/bin/xcodebuild with one from 10.1
  1. 通过此链接下载 Xcode 10.2(您需要使用您的 Apple Id 登录):https: //developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_10.2/ Xcode_10.2.xip和安装它
  2. 编辑 Xcode.app/Contents/Info.plist 并将最低系统版本更改为 10.13.6
  3. 对 Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist 执行相同操作(可能需要重新启动 Xcode 和/或 Mac OS 以使其在运行时打开模拟器)
  4. 将 Xcode.app/Contents/Developer/usr/bin/xcodebuild 替换为 10.1 中的一个