Git ignore file for Xcode projects

Source: Internet
Author: User

Http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects

#########################
#. gitignore file for Xcode4 and XCODE5 Source projects
#
# Apple bugs, waiting for Apple to Fix/respond:
#
# 15564624-what does the xccheckout file in Xcode5 do? Where ' s the documentation?
#
# Version 2.6
# for latest version, see:http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# Updates:
#-Fixed typo in ' xccheckout ' line-thanks to @lyck for pointing it out!
#-Fixed the. Idea Optional Ignore. Thanks to @hashier for pointing
#-Finally added "xccheckout" to the ignore. Apple still refuses to answer support requests on this, but in practice it seems you should ignore it.
#-minor tweaks from Jona and Coeur (slightly more precise xc* filtering/names)
# Updates:
#-appended non-standard items DISABLED by default (uncomment if your use those tools)
#-Removed the edit that a so.com moderator made without bothering to ask me
#-Researched CocoaPods lock more carefully, thanks to Gokhan Celiker
# Updates:
#-Fixed the broken "save personal schemes"
#-Added Line-by-line explanations for everything (some were missing)
#
# nb:if You is storing "built" products, this won't work,
# and you should with a different. Gitignore (or none at all)
# This file was for the SOURCE projects, where there is many extra
# files, we want to exclude
#
#########################

#####
# OS X temporary files that should never be committed
#
# C.F. http://www.westwind.com/reference/os-x/invisibles.html

. Ds_store

# C.F. http://www.westwind.com/reference/os-x/invisibles.html

. Trashes

# C.F. http://www.westwind.com/reference/os-x/invisibles.html

*.swp

#
# *.lock-this is used and abused by many editors for many different things.
# for the main ones I use (e.g. Eclipse), it should is excluded
# from Source-control, but YMMV.
# (lock files is usually local-only file-synchronization on the local FS this should not go in git)
# C.F. The "OPTIONAL" section at bottom though, for tool-specific variations!
#
# in particular, if you ' re using the CocoaPods, you'll want to comment-out the line:
*.lock


#
# profile-removed temporarily (on double-checking, I can ' t find it in OS X docs?)
#profile


####
# Xcode temporary files that should never be committed
#
# nb:nib/xib files still exist even on Storyboard projects, so we want this ...

*~.nib


####
# Xcode Build Files-
#
# Nb:slash on the end, so we only remove the FOLDER and not any files that were badly named "Deriveddata"

deriveddata/

# Nb:slash on the end, so we only remove the FOLDER and not any files that were badly named "Build"

build/


#####
# Xcode Private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
#
# This is complicated:
#
# Sometimes you need to put the this file in version control.
# Apple designed it poorly-if you use "custom executables", they is
# saved in the this file.
# 99% of projects do is those, so they does not want to version control the this file.
# .. But if you ' re in the 1, comment out the "*.pbxuser"

#. pbxuser:http://lists.apple.com/archives/xcode-users/2004/jan/msg00193.html

*.pbxuser

#. mode1v3:http://lists.apple.com/archives/xcode-users/2007/oct/msg00465.html

*.mode1v3

#. mode2v3:http://lists.apple.com/archives/xcode-users/2007/oct/msg00465.html

*.mode2v3

#. Perspectivev3:http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file

*.perspectivev3

# nb:also, whitelist the default ones, some projects need to use these
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3


####
# Xcode 4-semi-personal Settings
#
# Apple Shared data, Apple put in the wrong folder
# C.F. http://stackoverflow.com/a/19260712/153422
# from Answer:apple says "Don t ignore it"
# from Comments:apple are wrong; Apple code is too buggy to trust; There is no known negative side-effects to ignoring Apple's unofficial advice and instead doing the thing that actively F Ixes bugs in Xcode
# up-to-you, but ... current advice:ignore it.
*.xccheckout

#
#
# OPTION 1:---------------------------------
# Throw away all personal settings (including custom schemes!
#-unless they is "shared")
# as per Build/and deriveddata/, this ought to has a trailing slash
#
# Nb:this is exclusive with OPTION 2 below
xcuserdata/

# OPTION 2:---------------------------------
# get rid of all personal settings, but KEEP SOME of them
#-Nb:you must manually uncomment the bits you want to keep
#
# nb:this *requires* git v1.8.2 or above; Need to upgrade to latest OS X,
# or manually install git over the top of the OS X version
# Nb:this is exclusive with OPTION 1 above
#
#xcuserdata/**/*

# (requires option 2 above): Personal schemes
#
#!xcuserdata/**/xcschemes/*

####
# XCode 4 Workspaces-more detailed
#
# Workspaces is important! They is a core feature of Xcode-don ' t exclude them:)
#
# Workspace layout is quite spammy. For reference:
#
#/(Root)/
#/(project-name). xcodeproj/
# project.pbxproj
#/project.xcworkspace/
# Contents.xcworkspacedata
#/xcuserdata/
#/(your name)/xcuserdatad/
# userinterfacestate.xcuserstate
#/xcshareddata/
#/xcschemes/
# (shared scheme name). xcscheme
#/xcuserdata/
#/(your name)/xcuserdatad/
# (private scheme). Xcscheme
# xcschememanagement.plist
#
#

####
# Xcode 4-deprecated Classes
#
# Allegedly, if you manually ' Deprecate ' your classes, they get moved here.
#
# we ' re using Source-control, so this is a "feature"

*.moved-aside

# # # # # # # #
# optional:some Well-known tools people use side-by-side with Xcode/ios development
#
# nb:i ' d r Ather not include these this, but Gitignore's design is weak and doesn ' t allow
# Modular gitignore:you has to put EVE Rything in one file.
#
# COCOAPODS:
#
# c.f. Http://guides.cocoapods.org/using/using-cocoapods.html#what-is-a-podfilelock
# C.F. http://guides.cocoapods.org/using/using-cocoapods.html# Should-i-ignore-the-pods-directory-in-source-control
#
#! Podfile.lock
#
# RUBY:
#
# c.f. http://yehudakatz.com/2010/12/16/ clarifying-the-roles-of-the-gemspec-and-gemfile/
#
#! Gemfile.lock
#
# idea:
#
# c.f. https://www.jetbrains.com/objc/help/ Managing-projects-under-version-control.html?search=workspace.xml
#
#.idea/workspace.xml
#
# TextMate:
#
#--unverified:c.f. http://stackoverflow.com/a/50283/153422
#
#tm_build_errors

####
# unknown:recommended by others, but I can ' t discover what these files is
#

Git ignore file for Xcode projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.