- First go to the directory.
cd ~/Library/Developer/Xcode/UserData
- Then clone the whole repo into local.
Make sure that there is no directory with the same name CodeSnippets
. If exists, save the contents in that directory and paste them back into the CodeSnippets
directory after clone.
git clone git@github.com:archmagees/CodeSnippets.git
- Restart the Xcode. Now you can use the added code snippets.