I found one way to do this. It seems the code snippet files are plist files generated by xCode IDE. So from the github hosting the .m files here we can drag and drop into the xcode editor. Highlight the text and drag it into the xcode snippet editor. Xcode will then generate the plist file associated with each snippet you dragged in. How to get to these snippets so we can create a repo that your team can share ? this is how:
- From your terminal shell traverse to ~/Library/Developer/Xcode/UserData
1b. create a git repo of the
folder CodeSnippets and call it CodeSnippets
If there is already an existing folder called CodeSnippets then rename it to CodeSnippets_old
3.clone the repo you made in 1b.
note: might have to restart xcode to see the snippets appear.