更新到 mac os 10.15 Catalina 后 Xcode 11 未打开
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/58307386/
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 11 not opening after updating to mac os 10.15 Catalina
提问by Ben Smith
I was using Xcode 11 (dmg downloaded from developer account extra files section) on mac os 10.14.6
我在 mac os 10.14.6 上使用 Xcode 11(从开发者帐户额外文件部分下载的 dmg)
Today i updated my Mac os to 10.15 catalina to use xcode 11 canvas view but the issue is after updating to mac os 10.15 Catalina i am unable to open xcode. When i clicks on xcode icon it jumps for few seconds and then nothing happens.
今天我将我的 Mac os 更新到 10.15 catalina 以使用 xcode 11 画布视图,但问题是更新到 mac os 10.15 Catalina 后我无法打开 xcode。当我点击 xcode 图标时,它会跳几秒钟,然后什么也没发生。
I have no backup and projects going on and the main thing is that is my office pc where i work. Please help!!
我没有备份和正在进行的项目,主要是我工作的办公室电脑。请帮忙!!
I tried fixing by this but it didn't helped I can't open Xcode project after updating to Catalina
我尝试通过此修复,但它没有帮助 我更新到 Catalina 后无法打开 Xcode 项目
采纳答案by AndyTang
Xcode 11.1 is available on the Mac App Store now so you should probably be using that. Try a force brute approach by deleting Xcode 11, redownload and reinstall.
Xcode 11.1 现在可在 Mac App Store 上获得,因此您可能应该使用它。通过删除 Xcode 11、重新下载并重新安装来尝试强制暴力方法。
回答by RITZ XAVI
I was able to work around this by uninstalling Xcode first. What I did:
我可以通过先卸载 Xcode 来解决这个问题。我做了什么:
- Open Finder and navigate to Applications.
- Move Xcode from Applications to Trash.
- In the terminal, run the command
rm -rf ~/Library/Developer
- In the terminal, run the command
rm -rf ~/Library/Caches/com.apple.dt.Xcode
- Restart your machine.
- Now go to
App Store
and search forXcode
and install it from there.
- 打开 Finder 并导航到应用程序。
- 将 Xcode 从应用程序移至废纸篓。
- 在终端中,运行命令
rm -rf ~/Library/Developer
- 在终端中,运行命令
rm -rf ~/Library/Caches/com.apple.dt.Xcode
- 重新启动您的机器。
- 现在去那里
App Store
搜索Xcode
并安装它。
回答by Yogesh Saindane
This works for me.
这对我有用。
Close you project then Go to your project file > right click on project_name.xcworkspace > Show Package Contents > delete folder xcsharedata and xcworkspace.
关闭您的项目,然后转到您的项目文件 > 右键单击 project_name.xcworkspace > 显示包内容 > 删除文件夹 xcsharedata 和 xcworkspace。
It will create deleted file again once you open that project
打开该项目后,它将再次创建已删除的文件
回答by Ronnie
One could also try to perhaps add the program to the list of apps allowed to access the disk.
人们也可以尝试将程序添加到允许访问磁盘的应用程序列表中。
This can be found under: Settings > Security & Privacy > Privacy > ....
这可以在以下位置找到:设置 > 安全和隐私 > 隐私 > ....
Not directly related: but I just did this for the MS Office Programs (Word, Excel, Powerpoint Outlook etc..).
没有直接关系:但我只是为 MS Office 程序(Word、Excel、Powerpoint Outlook 等)做了这个。
While in contact with MS Support they advised me to delete everything and reinstall. Adding the programs was a lot easier and retained all my data.
在与 MS 支持联系时,他们建议我删除所有内容并重新安装。添加程序要容易得多,并保留了我的所有数据。