Git ignore file for Xcode 4 projects

ticofab picture ticofab · Jun 24, 2012 · Viewed 12.8k times · Source

Which files are better to ignore in git for an Xcode 4(.3.2)? This older question addresses the same issue but I find my structure to be different so I assume it's about an older version of Xcode.

Answer

Pfitz picture Pfitz · Jun 24, 2012

Here are git ignore files for basicly every language including Xcode : Github - git ignore

For me it is working like a charm. Here is the content of the Objective-C.gitignore

# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData