language13 règles activesVérifié le 2026-09-30
Swift Modèle .gitignore
Swift Package Manager build artifacts, Xcode outputs, and modules. Généré et fusionné de manière déterministe avec les règles officielles de GitHub pour préserver votre dépôt des répertoires de dépendances, artefacts de compilation et fichiers de configuration locale.
Générateur interactif de stack
Ouvrir dans le générateur complet/
Search for templates
Ajout rapide :
Sélectionnés1
Swift
Modèles sélectionnés (1)
Swift
language
Swift Package Manager build artifacts, Xcode outputs, and modules
#swift#swiftpm#apple-swift
.gitignore
13 règles•1 modèle
### Swift #### Xcode## gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore ## User settingsxcuserdata/ ## Obj-C/Swift specific*.hmap ## App packaging*.ipa*.dSYM.zip*.dSYM ## Playgroundstimeline.xctimelineplayground.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# *.xcodeproj## Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata# hence it is not needed unless you have added a package configuration file to your project# .swiftpm .build/ # 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.xmlfastlane/Preview.htmlfastlane/screenshots/**/*.pngfastlane/test_output 64 lignes•UTF-8•LF
Pipeline Déterministe
Source brute de Swift .gitignore
Modèle officiel upstream explorableswift.gitignore•63 lines•UTF-8
# Xcode## gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore ## User settingsxcuserdata/ ## Obj-C/Swift specific*.hmap ## App packaging*.ipa*.dSYM.zip*.dSYM ## Playgroundstimeline.xctimelineplayground.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# *.xcodeproj## Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata# hence it is not needed unless you have added a package configuration file to your project# .swiftpm .build/ # 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.xmlfastlane/Preview.htmlfastlane/screenshots/**/*.pngfastlane/test_output Détail des règles clés
Artefacts de compilation
Ignore les binaires compilés, les fichiers objets intermédiaires et les dossiers de sortie générés lors de la compilation.
.build/Carthage/Build/fastlane/test_output
Origine et vérification
Source :: GitHub gitignore officiel (main)
Licence :: CC0-1.0
Placez ce fichier dans le répertoire racine de votre projet sous le nom .gitignore. Les modifications s'appliquent aux fichiers nouveaux ou non suivis.