Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default Directory for Playground on Xcode

Tags:

xcode10

When I create a new Playground with Xcode 10.1 it always defaults to ~/Library/Autosave Information/

Is there any way I can change this?

enter image description here

like image 438
Ryan Heitner Avatar asked Dec 05 '18 15:12

Ryan Heitner


People also ask

Where is playground in Xcode?

To open Playground on Xcode, navigate to File in the menu and click on New > Playground... To test our square function, we will choose the Blank template. Name your Playground file, then click on Create.

What is the difference between Swift playground and Xcode?

Xcode and Swift are both software development products developed by Apple. Swift is a programming language used to create apps for iOS, macOS, tvOS, and watchOS. Xcode is an Integrated Development Environment (IDE) that comes with a set of tools that helps you build Apple-related apps.

How do I open swift playground on Mac?

In the Swift Playgrounds app on your Mac, click Run My Code (or use the Touch Bar). If there are instructions on the right side of the screen, they slide down when you click Run My Code, so you can watch your code run in the live view. When you click Stop, the instructions slide back up.


1 Answers

Workaround with symlink. Close XCode -> enter in terminal:

mv ~/Library/Autosave\ Information ~/Library/Autosave\ Information\ Old
ln -s "_desired_folder_path_" ~/Library/Autosave\ Information
like image 60
Gralex Avatar answered Oct 18 '22 21:10

Gralex