ReadViewDemo/Pods 此前整目录签入仓库,但白名单式的 .gitignore 只对 RDEpubReaderView、 RDPDFReaderView 的 Local Podspecs/Target Support Files 和 SnapKit 生效,其余第三方 pod (DTCoreText、DTFoundation、ZIPFoundation,以及本次新增的 SDWebImage、SDWebImageSVGCoder) 反而因为父目录被显式取消忽略而绕过了全局 gitignore 的 Pods 规则,被当作普通文件跟踪, 导致每次 pod install 产生的构建产物、xcconfig、Pods.xcodeproj 都会出现在 diff 里。 改为直接忽略 ReadViewDemo/Pods 与 ReadViewDemo/Podfile.lock 整体,并 git rm --cached 移除已跟踪的文件(工作区文件不受影响)。此后 Demo 工程的依赖状态完全由 Podfile 决定, 拉取仓库后本地执行 pod install 即可重建,不再需要区分哪些 pod 目录该签入、哪些该忽略。
30 lines
444 B
Plaintext
30 lines
444 B
Plaintext
|
|
# Xcode user data
|
|
xcuserdata/
|
|
|
|
# Build artifacts
|
|
.artifacts/
|
|
.deriveddata/
|
|
.swift-module-cache/
|
|
ReadViewDemo/build/
|
|
|
|
# CocoaPods output for the Demo project is not vendored — everyone runs
|
|
# `pod install` locally.
|
|
ReadViewDemo/Pods/
|
|
ReadViewDemo/Podfile.lock
|
|
|
|
# macOS system files
|
|
.DS_Store
|
|
|
|
# Local backup directories
|
|
*手动解包备份*
|
|
|
|
# AI tool output
|
|
_ssoft-output/
|
|
.claude/*
|
|
!.claude/skills
|
|
|
|
# Python bytecode
|
|
__pycache__/
|
|
*.py[cod]
|