Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the 'standard' content of .gitignore for an iPhone (Xcode) project?

What is considered the 'standard' content of .gitignore file for an iPhone (Xcode) project?

PS: not sure if this needs to be a CW.

like image 794
ryanprayogo Avatar asked Jun 18 '10 01:06

ryanprayogo


2 Answers

build/ .DS_Store **/*.pbxuser *.mode2v3 *.mode1v3 **/*.perspectivev* 

This is a good start.

updated with Dave's suggestions.

like image 92
kubi Avatar answered Sep 21 '22 18:09

kubi


You should also exclude xcworkspace and xcuserdata in xcode 4.2. So here is a complete list which one should ignore for iOS projects

# Exclude the build directory
build/*

# Exclude temp nibs and swap files
*~.nib
*.swp

# Exclude OS X folder attributes
.DS_Store

# Exclude user-specific XCode 3 and 4 files
*.mode1
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
*.pbxuser
*.xcworkspace
xcuserdata
like image 38
Saurabh Avatar answered Sep 24 '22 18:09

Saurabh