Does anyone have a good pre-rolled gitignore file for iPhone development using Xcode and PhoneGap?
Currently I’m using:
.idea
.DS_Store
*.swp
*~.nib
build/
adhoc/
.xcodeproj/ !*.xcodeproj/project.pbxproj
*.mode1v3
*.mode2v3
build/
xcuserdata
But I’m not sure this is ideal. For example, updating Phonegap kinda messes up a lot of things. Also, if another developer just builds the project using Xcode, then git will pick up some changes.
Oddly enough, Xcode does not feature on this list: https://github.com/github/gitignore
I ended up with this .gitignore config, which worked fine: