Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 Beta - Unable to add new Playground page

In Xcode 9 Beta, I have created a new Playground (File -> New -> Playground). Now, when I am adding a new Playground page (File -> New -> Playground Page), it is not added/shown. Is this a bug ?

like image 838
Ashish Verma Avatar asked Dec 05 '22 14:12

Ashish Verma


1 Answers

I am running into the same problem in beta and the final release of Xcode 9.0. As states in Release note below. Now I am using 2 steps to solve the issue.

https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/xcode_9/xcode_9.html ,

In Xcode menu, select File -> New -> Playground, Xcode will open window for you to choose a template.

enter image description here

Selecting one of the templates and navigate to your project folder to save (first it will take you to a location that is nowhere near your existing project folder ,this should be fixed !). Once hit save the playground file will open (mine open in a new window), close that window. Next in ProjectNavigator, right click on your project or a group under project (wherever you want the playground to be added in the first place) . Select 'Add file To YourProjectName'. Choose the playground file you just created and click 'ok'. Your playground should be included now.

enter image description here

like image 73
Ohmy Avatar answered Jan 01 '23 08:01

Ohmy