Xcode 在首次启动后无法启动?

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

Xcode won't start after first launch?

xcode

提问by Igor

I recently installed Xcode and after closing out of the first launch (because I realized I had more configuring to do). I cannot get it to re-launch. The icon will come up, but no program will show up. I do not get an error, and I am launching from the /Developer folder (not /Applications). I have tried re-installing/restarting multiple times to no avail. I have the latest version, and I am running Snow Leopard (10.6.6).

我最近安装了 Xcode,并在第一次启动后关闭(因为我意识到我有更多的配置要做)。我无法让它重新启动。图标会出现,但不会显示任何程序。我没有收到错误,我是从 /Developer 文件夹(不是 /Applications)启动的。我多次尝试重新安装/重新启动都无济于事。我有最新版本,并且正在运行 Snow Leopard (10.6.6)。

回答by Jim

The icon will come up, but no program will show up.

图标会出现,但不会显示任何程序。

Are you new to OS X? It sounds like you are describing the way OS X apps normally start up. By default, Xcode pops up a window with a list of most recent projects, but you can switch this off. It doesn't mean that Xcode isn't running, it just means you don't have any Xcode windows open. You can still select any of the usual menu items to start new projects, open existing projects, etc.

您是 OS X 新手吗?听起来您是在描述 OS X 应用程序的正常启动方式。默认情况下,Xcode 会弹出一个包含最近项目列表的窗口,但您可以将其关闭。这并不意味着 Xcode 没有运行,只是意味着您没有打开任何 Xcode 窗口。您仍然可以选择任何常用菜单项来启动新项目、打开现有项目等。

回答by Nigel

The answer to this problem is I believe easily sorted. Once you open X code and all you get is the menu bar at the top, go to Window, Welcome to x Code, then check the box bottom left hand corner of that screen 'Show this window when Xcode launches'

这个问题的答案我相信很容易排序。一旦你打开 X 代码,你得到的只是顶部的菜单栏,转到窗口,欢迎使用 x 代码,然后选中该屏幕左下角的框“Xcode 启动时显示此窗口”

Job done ! Now every time you hit the Xcode icon where ever it is the welcome screen will open and from there you can proceed into the program.

任务完成 !现在,每次您点击 Xcode 图标时,欢迎屏幕都会打开,您可以从那里继续进入程序。

回答by Taskmaster

Probably not your problem, but I had issues starting xcode with it trying to load up the last project I was working on. It would just hang and I had to force quit it.

可能不是你的问题,但我在尝试加载我正在处理的最后一个项目时遇到了问题。它会挂起,我不得不强行退出它。

In the end I deleted these directories:

最后我删除了这些目录:

project.xcworkspace/ xcuserdata/

project.xcworkspace/ xcuserdata/

and next time I tried to restart xcode it started fine.

下次我尝试重新启动 xcode 时,它​​开始正常了。

回答by animal_chin

In my case I launched XCode 6 (beta 7) on my MacBook Pro Mid 2010, and I had to wait for ~10minutes for anything to happen. I didn't see icon in dock, or even menu bar - just a reference in Force Quit Applications menu. After those 10 minutes classic alert with "You have downloaded Xcode from internet..." title appeared and then i had to wait another 5 minutes for another progress (installation of additional components).In overall it took Xcode 6 ~25 minutes to start.

就我而言,我在 2010 年年中的 MacBook Pro 上启动了 XCode 6(beta 7),我不得不等待大约 10 分钟才能发生任何事情。我没有在 Dock 中看到图标,甚至没有在菜单栏中看到 - 只是强制退出应用程序菜单中的一个参考。在 10 分钟经典警报“你已经从互联网上下载了 Xcode...”标题出现之后,我不得不再等 5 分钟才能获得另一个进展(安装附加组件)。总的来说,Xcode 6 ~ 25 分钟开始.

So... Patience! :)

所以……耐心点!:)

回答by Chathurka

Please go project folder and right click ."xcworkspace" and open "show package contents"-> xcuserdata and delete user folder and then relaunch.

请转到项目文件夹并右键单击.“xcworkspace”并打开“显示包内容”-> xcuserdata 并删除用户文件夹,然后重新启动。