This gist is just a list of small helper code and CLI commands to help during development.
Prints the location of the Core Data database in the console to inspect if data is actually saving. You can put this anywhere you would like. I typeically put it in the AppDelegate.swift file to be called when the app first launches.
print("🚒 Documents Directory: ", FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last ?? "Not Found!")
Shows the build time in the "status bar" of Xcode. Only works for building(cmd + b), does not show for build & run(cmd + r)
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
Remove all local git branches except [insert main branch name here]
:
git branch | grep -v "master" | xargs git branch -D