How a good .gitignore file should like for macOS?

I am trying to make an Xcode project open source. What contents should be comitted, and what can be left out? I am currently using this setup:

# OS X
.DS_Store

# VST3
xcuserdata/
build/VST3/
build/bin/
*.build/
build/build/XCBuildData/
build/build/base.build/
build/build/moduleinfotool.build/
build/build/pluginterfaces.build/
build/build/sdk.build/
build/build/sdk_common.build/
build/build/sdk_hosting.build/
build/build/validator.build/
build/build/vstgui.build/
build/build/vstgui_support.build/
build/build/vstgui_uidescription.build/
build/lib/

Is that excluding too much, or should I include more?

Another problem seems to be to recreate a project that has been generated with the Steinberg Project Generator app, as it has dependencies to local files. So it seems other users need to setup the project from scratch, too, just using the source and asset files?

This is what I have for mine:

.DS_Store
.idea
build
cmake-build-debug

Source: .gitignore

Just using build simply ignores the entire build folder. You don’t have to try to guess what’s under. cmake-build-debug is for CLion

1 Like