Xcode中的游乐场无法打开

时间:2015-07-16 00:31:31

标签: xcode swift-playground

在我按下cmd+option+shift+N或点击“开始操场”后,我无法创建游乐场项目'如下图所示,什么都没发生。没有弹出窗口,没有任何消息。

有人可以帮我找出原因吗?

xcode welcome window

1 个答案:

答案 0 :(得分:4)

好的,最后我在Console app。

中找到了以下日志
7/16/15 09:22:39.551 AM Xcode[1337]: [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-7720/IDEKit/TemplateLibrary/IDEPlaygroundCreationHelper.m:48
Details:  Could not find suitable playground file template.
Object:   <IDEPlaygroundCreationHelper>
Method:  +createNewPlaygroundFromTemplateInWorkspaceWindowController:platformIdentifier:withContextSetupBlock:
Thread:   <NSThread: 0x7fab12514460>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

它说Xcode Could not find suitable playground file template,然后我意识到我几个月前修改了代码模板,所以我打算删除它们

  

sudo rm -rf~ / Library / Developer / Xcode / Templates / File \ Templates /

然后游乐场工作!它可能是由不兼容的模板文件引起的。