Skip to content

Commit c8b61b6

Browse files
committed
Tweak .gitignore to always ignore .swiftpm
By default Xcode saves an xctestplan directly in the `.swiftpm` directory if you change any of its default values (e.g when enabling code coverage). As such, ignore the entire `.swiftpm` directly, not just `.swiftpm/xcode`. Also ignore it for any child directories, avoiding the need to have separate `.gitignore`s for child SwiftPM projects.
1 parent 2d42e8d commit c8b61b6

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.build/
33
# Ignore generated Xcode projects
44
*.xcodeproj
5-
# Ignore Data Xcode stores when opening the project directly
6-
/.swiftpm/xcode
5+
# Ignore SwiftPM state, such as the generated xcodeproj when opening the project directly
6+
.swiftpm
77
# Ignore user state in Xcode Projects
88
*.xcuserdatad
99
UserInterfaceState.xcuserstate

CodeGeneration/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

Examples/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)