xcode Xcode安装:如何防止Xcode自动升级

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

Xcode Installation: how to prevent automatic upgrade of Xcode

xcodemacosmac-app-store

提问by SwiftArchitect

I have been using Xcode 6.4. I have downloaded 7.0 beta 6 from the developer.apple.com service, and had both versions happily cohabited for weeks. Somehow, Xcode 6.4 was replaced automagically by 7.0, probably from the App Store.

我一直在使用 Xcode 6.4。我已经从 developer.apple.com 服务下载了 7.0 beta 6,并且两个版本愉快地同居了几个星期。不知何故,Xcode 6.4 被 7.0 自动替换了,可能来自 App Store。

I want to prevent automatic Xcode update from happening in the future, and manually update Xcode when I want or need to. It appears that:

我想防止将来发生自动 Xcode 更新,并在我想要或需要时手动更新 Xcode。看起来:

You will be notified when the updates are ready to be installed

当更新准备好安装时,您将收到通知

and

Install app updates

安装应用更新

are mutually exclusive, and opting for app updatesvoids the notification.

是相互排斥的,选择app updates无效通知。

Where to check the Download newly available app updatesbut do not Download OS X updatesbox, if such a feature exists? Is it possible to get notified prior every installation?

如果存在这样的功能,在哪里检查Download newly available app updates但不要Download OS X updates框?是否可以在每次安装之前获得通知?

回答by Jacob

Under your Mac's System Preferences there should be a item called App Store where you can turn off automatic updates from App Store (which turns off all app updates, not only Xcode).

在 Mac 的“系统偏好设置”下应该有一个名为 App Store 的项目,您可以在其中关闭 App Store 的自动更新(关闭所有应用程序更新,而不仅仅是 Xcode)。

The You will be notified when the updates are ready to be installedonly applies to the downloading of the data and if you check this box it will therefore download without your explicit approval. It will not install unless you check the Install app updates.

当更新准备安装将通知您只适用于数据的下载,如果您选中此复选框,将下载因此没有您的明确同意。除非您选中安装应用更新,否则它不会安装。

enter image description here

在此处输入图片说明

回答by SwiftArchitect

Beware! Despite the message:

谨防!尽管有消息:

You will be notified when the updates are ready to be installed

当更新准备好安装时,您将收到通知

in reality:

事实上:

You will notbe notified when the updates are ready to be installed

当更新准备好安装时,您将不会收到通知

The notification only applies when Install app updatesis notchecked. If you select Install app updates, Xcode and all other apps will be silently upgraded. Thus, the answer is:

通知时才适用安装应用程序的更新检查。如果您选择Install app updates,Xcode 和所有其他应用程序将被静默升级。因此,答案是:



Do not select Install app updates.This is the only safe way to ensure Xcode does not get upgraded from underneath your feet. This is also the only setup you should pick in a commercial team, where every engineer should have the very same version of the development environment.

不要选择安装应用更新这是确保 Xcode 不会从您脚下升级的唯一安全方法。这也是您应该在商业团队中选择的唯一设置,每个工程师都应该拥有完全相同版本的开发环境。

Uncheck Install app updates

取消选中安装应用更新

回答by arango_86

Also, I think its better to disable the following option as well in the Xcode settings.enter image description here

另外,我认为最好在 Xcode 设置中禁用以下选项。在此处输入图片说明