language13 個の有効ルール2026-09-30 検証済み
Swift .gitignore テンプレート
Swift Package Manager build artifacts, Xcode outputs, and modules. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Swift
選択されたテンプレート (1)
Swift
language
Swift Package Manager build artifacts, Xcode outputs, and modules
#swift#swiftpm#apple-swift
.gitignore
13 ルール•1 テンプレート
### 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 行•UTF-8•LF
決定論的パイプライン
生ソース: Swift .gitignore
クローラブルな公式アップストリーム原典swift.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 主要除外パターンの解説
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
.build/Carthage/Build/fastlane/test_output
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。