每当我在操场上写几行代码时,XCode都会挂起 [英] XCode hangs every time when i write few lines of code in playground

查看:106
本文介绍了每当我在操场上写几行代码时,XCode都会挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

购买了新的imac之后,我才开始与Swish合作,并且我正在工作。在过去的两天里,我用墙砸了头,但我无法解决此问题。

I have just started working with Swish after buying my new imac and i am working on play ground. for last 2 days i am banging my head with wall but i could not fix this problem.

每当我编写几行代码时,当您将鼠标悬停在xcode窗口上时,Xcode就会挂起,并且鼠标会变成彩色小圆圈。

When ever i am writing few lines of code, Xcode hangs and mouse turns into small colored circle when you hoverover on the xcode window. I have to quit by force every time when xcode hangs.

我尝试了所有可能在stackoverflow上找到的选项;

I tried all possible option which i could find on stackoverflow;


  1. 我将xcode从应用程序拖到垃圾桶,清理了垃圾桶,重新启动了imac,并从应用商店下载了xcode并安装了它。
    在我安装后打开xcode时,它会自动打开我的所有文件,问题仍然存在。

  1. I draged xcode from application to trash bin, cleaned trash bin, restarted the imac, downloaded xcode from app store installed it. when i opened xcode after installation, it opened all my files automatically and problem was still there.

然后我遵循此解决方案如何从MAC 10.9卸载Xcode 5.0.2 并使用appCleaner删除了所有与xcode相关的文件。它清除了所有文件和文件夹。我重新启动系统并再次安装xcode :(并且问题仍然存在。

Then i followed this solution How to uninstall Xcode 5.0.2 from MAC 10.9 and removed all xcode related files by using appCleaner. It cleaned all files and folder. I restarted my system and installed xcode again :( and problem is still there.

我尝试使用 sudo / Developer /卸载xcode。库/ uninstall-devtools --mode = all 但不起作用,终端说

I tried to uninstall xcode with sudo /Developer/Library/uninstall-devtools --mode=all but it does not work, terminal says

sudo:/ Developer / Library / uninstall-devtools :找不到命令

sudo: /Developer/Library/uninstall-devtools: command not found

我可以看到此运行时编译器出了问题。

I could see that there is something wrong with this run time compiler.

是的,我下载并安装了xcode 6.4 beta版,问题仍然存在。

and yes i downloaded and installed the xcode 6.4 beta version and problem still there.

任何人都可以从:( -> :)

Can any one turn my face from :( -> :)

推荐答案

这是@ user3344236提供的解决方案。如果有人遇到相同的问题,请使用此技巧。创建一个空项目,然后在其中添加Playgrounds文件。它不会崩溃或Xcode不会挂起。

Here is a solution which @user3344236 provids. If someone has same problem use this trick. Create an empty project and then add playgrounds file in it. It would not crash or Xcode would not hang.

游乐场处于早期阶段,存在某些问题如果使用文件->新建-> PlayGroun创建快速文件d,Xcode很有可能会挂起,您可能会遇到我2天以来遇到的相同问题。

Playground is in early stages and there is something fishy with "standalone" playground, If you create swift file with File->New->PlayGround, there is high chances that Xcode will hang and you can have same problem what i had for 2 days.

这篇关于每当我在操场上写几行代码时,XCode都会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆