Add .gitignore and stop tracking local Xcode and macOS files.

Exclude xcuserdata, build artifacts, and secrets from version control while removing previously committed user-specific scheme and state files.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 10:17:10 +08:00
parent c5374666de
commit 3a11583729
11 changed files with 50 additions and 403 deletions

50
.gitignore vendored Normal file
View File

@ -0,0 +1,50 @@
# macOS
.DS_Store
.AppleDouble
.LSOverride
._*
# Xcode user-specific
xcuserdata/
*.xcuserstate
*.xcbkptlist
*.xccheckout
*.moved-aside
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
# Xcode build artifacts
build/
DerivedData/
*.ipa
*.dSYM
*.dSYM.zip
*.app.dSYM
*.app.dSYM.zip
*.xcarchive
# Swift Package Manager
.build/
.swiftpm/xcode/package.xcworkspace/xcuserdata/
Package.resolved.bak
# CocoaPods build artifacts (Pods/ 目录已入库,保留 AMap 预编译库)
Pods/resources-to-copy-*.txt
# Fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
# IDE / editor
.idea/
*.swp
*~
# Env / secrets
.env
.env.*
*.pem