What are the best practices while including a Xcode project under version control.
This is what is in my Global .gitignore
file which you can see as a gist on GitHub, but the Xcode list can be applied to other systems
# Mac OS X *.DS_Store # Xcode *.pbxuser *.mode1v3 *.mode2v3 *.perspectivev3 *.xcuserstate project.xcworkspace/ xcuserdata/ # Generated files *.o *.pyc #Python modules MANIFEST dist/ build/ # Backup files *~.nib \#*# .#*
Check in project.pbxproj
, ignore the user specific files.
Include shared components and third party libraries as project dependencies using submodules/externals/whatever your VCS supports instead of manually copying static library binaries without any history.
You will get merge conflicts in the project.pbxproj
, be prepared to deal with this and try to minimize the difficulty of resolving them.
Check in early and often.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With