Xcode-beta 在更新时无法打开

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

Xcode-beta can not be opened while it is being updated

iosxcode

提问by Maniganda saravanan

I'm using Xcode beta 8.1 beta 2for development.
It was working fine for me.
But suddenly, it closed and I tried to open it prompted me this message:

我正在Xcode beta 8.1 beta 2用于开发。
它对我来说很好用。
但突然间,它关闭了,我试图打开它提示我这条消息:

Xcode-beta can not be opened while it is being updated.

Xcode-beta 在更新时无法打开。

enter image description here

在此处输入图片说明

When will it be resolved?

什么时候能解决?

回答by Rick

Open activity monitor (/Applications/Utilities/Activity Monitor.app), switch to the CPU tab and search for storedownloadd. If that process is present and you aren't downloading anything using the Mac App Store, you can kill it.

打开活动监视器 ( /Applications/Utilities/Activity Monitor.app),切换到 CPU 选项卡并搜索storedownloadd. 如果该进程存在并且您没有使用 Mac App Store 下载任何内容,则可以终止它。

回答by Abhilash Perayil

Faced the same issue and here is the solution to open Xcode.

面临同样的问题,这里是打开 Xcode 的解决方案。

Go to Applicationfolder -> find Xcode-> Right click and select "Show Package Content" -> Go to Content-> MacOS-> Double click Xcode(Unix excecutable file).

转到应用程序文件夹 -> 找到Xcode-> 右键单击​​并选择“显示包内容” -> 转到内容-> MacOS-> 双击Xcode(Unix 可执行文件)。

It worked for me!

它对我有用!

回答by newDeveloper

tried @Rick's solution didn't work. I ended up restarting my machine which fixed it.

试过@Rick 的解决方案没有用。我最终重新启动了修复它的机器。

回答by Sazzad Hissain Khan

Please follow the steps below,

请按照以下步骤操作,

1. Open App Store app in you Mac
2. Select Updates tab
3. Look Xcode is in Pending section
4. Stop (Sometime start Update and then Stop)

You will be able to open the app now onwards.

从现在开始,您将能够打开该应用程序。

Note: That is applicable not only for Xcode but also for any app which is not opening due to updating.

注意:这不仅适用于 Xcode,也适用于任何因更新而无法打开的应用程序。

enter image description here

在此处输入图片说明

回答by Ze Li

Did you update your system to the newest version? If not, please do so. Then try opening XCode. I believe it will work out with this problem. Otherwise, you need to re-install your Xcode.

您是否将系统更新到最新版本?如果没有,请这样做。然后尝试打开 XCode。我相信它会解决这个问题。否则,您需要重新安装 Xcode。

回答by brsr

In my case, I noticed that this warning is revealed when there is a continuing install in AppStore (it was itunes for me and Xcode 8.2.1).

就我而言,我注意到在 AppStore 中继续安装时会显示此警告(对我来说是 iTunes 和 Xcode 8.2.1)。

Try to cancel download or just wait for it to be complete. Then xcode will again be available to work on.

尝试取消下载或等待下载完成。然后 xcode 将再次可用。

回答by TheYogi

I had this same problem for a while and the ONLY thing that worked for me was to uninstall XCode and download it again.

我有一段时间遇到了同样的问题,唯一对我有用的是卸载 XCode 并重新下载。

回答by Rishi

Hope this helps anyone with the same issue as I had. As my Mac running out of space, I deleted some Simulators(from ~/Library/Developer/CoreSimulator/Devices/) which I don't need/use. When I tried to start Xcode after cleanup then I got OP's issue.

希望这可以帮助与我遇到相同问题的任何人。由于我的 Mac 空间不足,我删除了一些~/Library/Developer/CoreSimulator/Devices/我不需要/使用的模拟器(来自)。当我在清理后尝试启动 Xcode 时,我遇到了 OP 的问题。

Able to launch Xcode after restarting the system. So try restarting system first if that doesn't work, try @Sazzad's or accepted answer.

能够在重新启动系统后启动 Xcode。因此,如果这不起作用,请先尝试重新启动系统,请尝试@Sazzad 或接受的答案。

回答by Bit-Man

Open Launchpad, scroll to XCode and if it shows the download progress just wait for completion XCode update downloading

打开 Launchpad,滚动到 XCode,如果它显示下载进度,请等待完成 XCode 更新下载