Playground in Xcode does not open

I can’t create a playground project, after I cmd+option+shift+Nclick or click “Start from playground”, as shown below, nothing happened. The window does not open, there are no messages.

Can someone help me figure out why?

xcode welcome window

+4
source share
1 answer

Well, finally, I found the Console log below .

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.

He told Xcode Could not find suitable playground file template, then I realized that I modified the code templates a few months ago, so I was going to delete them

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

Then the playground works! This may be caused by incompatible template files.

+4
source

Source: https://habr.com/ru/post/1598138/


All Articles