From bcf4446b4eac5675877aed3c9d33837874959155 Mon Sep 17 00:00:00 2001 From: NuPlay <73557895+NuPlay@users.noreply.github.com> Date: Sat, 29 Aug 2026 17:57:15 +0900 Subject: [PATCH] chore: stop tracking Xcode workspace state and fix the gitignore anchoring `.gitignore` ignored `.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata`, but a pattern containing a slash is anchored to the directory holding the `.gitignore`. The rule therefore only covered the copy at the repository root, and the identical file under `TestApp/` was committed. Anchor both with `**/`. `IDEWorkspaceChecks.plist` was tracked and matched by no rule at all. It holds a single `IDEDidComputeMac32BitWarning` flag, which is local Xcode state and has nothing to do with the package. Both files are only untracked here, not deleted; Xcode regenerates them. Also ignore `.claude/`, which was neither tracked nor ignored and so was picked up by `git add -A`. --- .gitignore | 9 ++++++++- .../xcshareddata/IDEWorkspaceChecks.plist | 8 -------- .../xcode/package.xcworkspace/contents.xcworkspacedata | 7 ------- 3 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 .swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 TestApp/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/.gitignore b/.gitignore index 0b178c0..de787c9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,12 @@ /*.xcodeproj xcuserdata/ DerivedData/ -.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata TestApp/.build + +# Xcode workspace state. These patterns contain a slash, so without the leading `**` +# git anchors them to the repository root and the copies under TestApp/ slip through. +**/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +**/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist + +# Local agent/tool settings +.claude/ diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/TestApp/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/TestApp/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/TestApp/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - -