From 6fd1df0503abd148edb2d456e7ed3243fb9837d4 Mon Sep 17 00:00:00 2001 From: AndyChen1024 Date: Mon, 14 Sep 2026 21:10:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=BF=81=E7=A7=BB=20App=20?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=B9=B6=E6=8E=A5=E5=85=A5=20IosClientKit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios-client.xcodeproj/project.pbxproj | 24 +++++- .../xcschemes/ios-client.xcscheme | 76 +++++++++++++++++++ ios-client/ContentView.swift | 24 ------ ios-client/IOSClientApp.swift | 11 +++ ios-client/ios_clientApp.swift | 17 ----- 5 files changed, 109 insertions(+), 43 deletions(-) create mode 100644 ios-client.xcodeproj/xcshareddata/xcschemes/ios-client.xcscheme delete mode 100644 ios-client/ContentView.swift create mode 100644 ios-client/IOSClientApp.swift delete mode 100644 ios-client/ios_clientApp.swift diff --git a/ios-client.xcodeproj/project.pbxproj b/ios-client.xcodeproj/project.pbxproj index 80a5e1c..ffd7a8f 100644 --- a/ios-client.xcodeproj/project.pbxproj +++ b/ios-client.xcodeproj/project.pbxproj @@ -65,6 +65,7 @@ ); name = "ios-client"; packageProductDependencies = ( + A10000000000000000000002 /* App */, ); productName = "ios-client"; productReference = A1890A533057E82C003D5BE4 /* ios-client.app */; @@ -94,6 +95,9 @@ ); mainGroup = A1890A4A3057E82C003D5BE4; minimizedProjectReferenceProxies = 1; + packageReferences = ( + A10000000000000000000001 /* XCLocalSwiftPackageReference "IosClientKit" */, + ); preferredProjectObjectVersion = 77; productRefGroup = A1890A543057E82C003D5BE4 /* Products */; projectDirPath = ""; @@ -246,6 +250,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 972VPTZ33X; ENABLE_APP_SANDBOX = YES; ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; @@ -270,7 +275,7 @@ REGISTER_APP_GROUPS = YES; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; SWIFT_EMIT_LOC_STRINGS = YES; @@ -288,6 +293,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 972VPTZ33X; ENABLE_APP_SANDBOX = YES; ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; @@ -312,7 +318,7 @@ REGISTER_APP_GROUPS = YES; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; SWIFT_EMIT_LOC_STRINGS = YES; @@ -325,6 +331,20 @@ }; /* End XCBuildConfiguration section */ +/* Begin XCLocalSwiftPackageReference section */ + A10000000000000000000001 /* XCLocalSwiftPackageReference "IosClientKit" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = IosClientKit; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + A10000000000000000000002 /* App */ = { + isa = XCSwiftPackageProductDependency; + productName = App; + }; +/* End XCSwiftPackageProductDependency section */ + /* Begin XCConfigurationList section */ A1890A4E3057E82C003D5BE4 /* Build configuration list for PBXProject "ios-client" */ = { isa = XCConfigurationList; diff --git a/ios-client.xcodeproj/xcshareddata/xcschemes/ios-client.xcscheme b/ios-client.xcodeproj/xcshareddata/xcschemes/ios-client.xcscheme new file mode 100644 index 0000000..87df22d --- /dev/null +++ b/ios-client.xcodeproj/xcshareddata/xcschemes/ios-client.xcscheme @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-client/ContentView.swift b/ios-client/ContentView.swift deleted file mode 100644 index 17af27c..0000000 --- a/ios-client/ContentView.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// ContentView.swift -// ios-client -// -// Created by Andy on 2026/9/14. -// - -import SwiftUI - -struct ContentView: View { - var body: some View { - VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") - } - .padding() - } -} - -#Preview { - ContentView() -} diff --git a/ios-client/IOSClientApp.swift b/ios-client/IOSClientApp.swift new file mode 100644 index 0000000..47fa289 --- /dev/null +++ b/ios-client/IOSClientApp.swift @@ -0,0 +1,11 @@ +import SwiftUI +import App + +@main +struct IOSClientApp: App { + var body: some Scene { + WindowGroup { + AppRootView() + } + } +} diff --git a/ios-client/ios_clientApp.swift b/ios-client/ios_clientApp.swift deleted file mode 100644 index ca853d1..0000000 --- a/ios-client/ios_clientApp.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// ios_clientApp.swift -// ios-client -// -// Created by Andy on 2026/9/14. -// - -import SwiftUI - -@main -struct ios_clientApp: App { - var body: some Scene { - WindowGroup { - ContentView() - } - } -}