无法打开 Xcode 中的游乐场
Playground in Xcode cannot be opened
我无法创建 playground 项目,按下 cmd+option+shift+N
或单击 'Get started with a playground' 后,如下图所示,没有任何反应。没有 window 弹出窗口,没有任何消息。
谁能帮我弄清楚为什么?
好的,我终于在Console应用程序中找到了下面的登录
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.
上面说XcodeCould not find suitable playground file template
,然后我意识到我几个月前修改了代码模板,所以我打算删除它们
sudo rm -rf ~/Library/Developer/Xcode/Templates/File\ Templates/
那么 playground 就可以了!这可能是由不兼容的模板文件引起的。
我无法创建 playground 项目,按下 cmd+option+shift+N
或单击 'Get started with a playground' 后,如下图所示,没有任何反应。没有 window 弹出窗口,没有任何消息。
谁能帮我弄清楚为什么?
好的,我终于在Console应用程序中找到了下面的登录
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.
上面说XcodeCould not find suitable playground file template
,然后我意识到我几个月前修改了代码模板,所以我打算删除它们
sudo rm -rf ~/Library/Developer/Xcode/Templates/File\ Templates/
那么 playground 就可以了!这可能是由不兼容的模板文件引起的。