Which files should I include in .gitignore when using Git in conjunction with Xcode?
.gitignore
The people of GitHub have exhaustive and documented .gitignore files for Xcode projects:
Swift: https://github.com/github/gitignore/blob/master/Swift.gitignore
Objective-C: https://github.com/github/gitignore/blob/master/Objective-C.gitignore