From aec5354d8bffb9aa381abebc8bef3a47a23678f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E5=86=9C=E9=98=BF=E6=A5=A0?= Date: Thu, 29 Oct 2026 16:33:34 +0800 Subject: [PATCH] =?UTF-8?q?chore(project):=20=E6=B7=BB=E5=8A=A0=20.gitigno?= =?UTF-8?q?re=20=E4=B8=8E=20.editorconfig=EF=BC=8C=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9C=AC=E5=9C=B0=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 补充 macOS / Xcode / Swift 常用忽略规则 - 移除已跟踪的 xcuserdata 用户本地产物 - 统一编辑器基础配置(Swift 4 空格缩进) --- .editorconfig | 18 ++++++++++ .gitignore | 33 +++++++++++++++++++ .../xcschemes/xcschememanagement.plist | 14 -------- kymo/{ => App}/kymoApp.swift | 0 kymo/ContentView.swift | 24 -------------- 5 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitignore delete mode 100644 kymo.xcodeproj/xcuserdata/airnan.xcuserdatad/xcschemes/xcschememanagement.plist rename kymo/{ => App}/kymoApp.swift (100%) delete mode 100644 kymo/ContentView.swift diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..81cb7df --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.swift] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[{Makefile,*.mk}] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28ae189 --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# ---- macOS 系统文件 ---- +.DS_Store +.AppleDouble +.LSOverride + +# ---- Xcode 用户本地产物 ---- +xcuserdata/ +*.xcuserstate +*.xcscmblueprint +*.moved-aside +DerivedData/ +build/ +*.hmap + +# ---- 构建产物 ---- +*.ipa +*.dSYM +*.dSYM.zip +*.app +*.framework +*.xcframework + +# ---- Swift Package Manager ---- +.build/ +.swiftpm/ + +# ---- CocoaPods(若未来引入) ---- +Pods/ + +# ---- 工具与编辑器 ---- +.vscode/ +.idea/ +*.swp diff --git a/kymo.xcodeproj/xcuserdata/airnan.xcuserdatad/xcschemes/xcschememanagement.plist b/kymo.xcodeproj/xcuserdata/airnan.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index a704fb3..0000000 --- a/kymo.xcodeproj/xcuserdata/airnan.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - kymo.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/kymo/kymoApp.swift b/kymo/App/kymoApp.swift similarity index 100% rename from kymo/kymoApp.swift rename to kymo/App/kymoApp.swift diff --git a/kymo/ContentView.swift b/kymo/ContentView.swift deleted file mode 100644 index a248872..0000000 --- a/kymo/ContentView.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// ContentView.swift -// kymo -// -// Created by Airnan on 2026/10/29. -// - -import SwiftUI - -struct ContentView: View { - var body: some View { - VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") - } - .padding() - } -} - -#Preview { - ContentView() -}