Created
January 13, 2020 11:42
-
-
Save mjhassan/5a64db38feccdc3b3fc5e6107e87b791 to your computer and use it in GitHub Desktop.
Generic git ignore file for Xcode, Swift, ObjC & MacOSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Created by https://www.gitignore.io/api/osx,swift,objective-c,xcode | |
| # Edit at https://www.gitignore.io/?templates=osx,swift,objective-c,xcode | |
| ### Objective-C ### | |
| # Xcode | |
| # | |
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
| ## Build generated | |
| build/ | |
| DerivedData/ | |
| ## Various settings | |
| *.pbxuser | |
| !default.pbxuser | |
| *.mode1v3 | |
| !default.mode1v3 | |
| *.mode2v3 | |
| !default.mode2v3 | |
| *.perspectivev3 | |
| !default.perspectivev3 | |
| xcuserdata/ | |
| ## Other | |
| *.moved-aside | |
| *.xccheckout | |
| *.xcscmblueprint | |
| ## Obj-C/Swift specific | |
| *.hmap | |
| *.ipa | |
| *.dSYM.zip | |
| *.dSYM | |
| # 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/ | |
| # Add this line if you want to avoid checking in source code from the Xcode workspace | |
| *.xcworkspace | |
| # Carthage | |
| # Add this line if you want to avoid checking in source code from Carthage dependencies. | |
| Carthage/Checkouts | |
| Carthage/Build | |
| # 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 | |
| # Code Injection | |
| # After new code Injection tools there's a generated folder /iOSInjectionProject | |
| # https://github.com/johnno1962/injectionforxcode | |
| iOSInjectionProject/ | |
| ### Objective-C Patch ### | |
| ### OSX ### | |
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Icon must end with two \r | |
| Icon | |
| # Thumbnails | |
| ._* | |
| # Files that might appear in the root of a volume | |
| .DocumentRevisions-V100 | |
| .fseventsd | |
| .Spotlight-V100 | |
| .TemporaryItems | |
| .Trashes | |
| .VolumeIcon.icns | |
| .com.apple.timemachine.donotpresent | |
| # Directories potentially created on remote AFP share | |
| .AppleDB | |
| .AppleDesktop | |
| Network Trash Folder | |
| Temporary Items | |
| .apdisk | |
| ### Swift ### | |
| # Xcode | |
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
| ## Playgrounds | |
| timeline.xctimeline | |
| playground.xcworkspace | |
| # Swift Package Manager | |
| # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. | |
| # Packages/ | |
| # Package.pins | |
| # Package.resolved | |
| .build/ | |
| # Add this line if you want to avoid checking in Xcode SPM integration. | |
| # .swiftpm/xcode | |
| # 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/ | |
| # Add this line if you want to avoid checking in source code from the Xcode workspace | |
| # *.xcworkspace | |
| # Carthage | |
| # Add this line if you want to avoid checking in source code from Carthage dependencies. | |
| # Carthage/Checkouts | |
| # Accio dependency management | |
| Dependencies/ | |
| .accio/ | |
| # 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 | |
| # Code Injection | |
| # After new code Injection tools there's a generated folder /iOSInjectionProject | |
| # https://github.com/johnno1962/injectionforxcode | |
| ### Xcode ### | |
| # Xcode | |
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
| ## User settings | |
| ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) | |
| ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) | |
| ## Xcode Patch | |
| *.xcodeproj/* | |
| !*.xcodeproj/project.pbxproj | |
| !*.xcodeproj/xcshareddata/ | |
| !*.xcworkspace/contents.xcworkspacedata | |
| /*.gcno | |
| ### Xcode Patch ### | |
| **/xcshareddata/WorkspaceSettings.xcsettings | |
| # End of https://www.gitignore.io/api/osx,swift,objective-c,xcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment