Skip to content

Instantly share code, notes, and snippets.

@PaulEhrhardt
Last active June 23, 2019 11:14
Show Gist options
  • Save PaulEhrhardt/1ce6860c4695e0d39788 to your computer and use it in GitHub Desktop.
Save PaulEhrhardt/1ce6860c4695e0d39788 to your computer and use it in GitHub Desktop.
An Xcode 8 .gitignore template for use with Objective-C and Swift
############################
# OS X temporary files #
############################
.Trashes
.DS_Store
*.swp
*.lock
############################
# Xcode temporary files #
############################
*~.nib
############################
# Xcode build files #
############################
DerivedData/
build/
############################
# Xcode private settings #
############################
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
# withelist the defaults
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3
############################
# Xcode misc files #
############################
xcuserdata/
*.xcuserstate
*.xcscmblueprint
############################
# Xcode source control #
############################
*.xccheckout
############################
# Xcode deprecated classes #
############################
*.moved-aside
############################
# Xcode workspace #
############################
# Add this line if you want to avoid checking in xcode workspace.
#*.xcworkspace
############################
# Obj-C/Swift specific #
############################
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
############################
# Swift Package Manager #
############################
.build/
# Add this lines if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
############################
# JetBrains IDEs files #
############################
.idea/
############################
# Ruby #
############################
Gemfile.lock
############################
# Cocoapods #
############################
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
Pods/
############################
# Carthage #
############################
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
# Carthage/Build
Carthage/
############################
# Fastlane #
############################
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment