Xcode: backup code snippets, breakpoints, templates and topics to cloud storage with soft links

Time:2019-11-14

Xcode: backup code snippets, breakpoints, templates and topics to cloud storage with soft links

#!/bin/bash

Backup_Path="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Xcode"
Xcode_config_path="$HOME/Library/Developer/Xcode"

echo "Restoring code snippets..."
ln -s "$Backup_Path/UserData/CodeSnippets" "$Xcode_config_path/UserData"
echo "Restoring user breakpoints..."
ln -s "$Backup_Path/UserData/xcdebugger" "$Xcode_config_path/UserData"
echo "Restoring font and color themes..."
ln -s "$Backup_Path/UserData/FontAndColorThemes" "$Xcode_config_path/UserData"
echo "Restoring templates..."
ln -s "$Backup_Path/Templates" "$Xcode_config_path"
echo "All set!"

You can also use restore? Xcode? Configuration

Modify backup path and Xcode config path to the corresponding path.

Recommended Today

Angular cli Ultimate Guide

Read the latest tutorial of angular 6 / rxjs, please visit the front-end fairy Road What is angular cli? Angular cli is a command line interface, which is used to realize the automatic development workflow. It allows you to do the following: Create a new angular application Running withLiveReloadSupported development servers to preview applications during […]