From ad292e5c8412a9a36f091cc8477f5cb008f1ea3e Mon Sep 17 00:00:00 2001 From: banjun Date: Mon, 30 Oct 2023 14:00:40 +0900 Subject: [PATCH] update & fix framework target and the example target in the xcworkspace --- Example/App.swift | 3 +-- .../SwiftHotReloadExample.xcodeproj/project.pbxproj | 8 ++++---- .../SwiftHotReload.xcodeproj/project.pbxproj | 13 +++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Example/App.swift b/Example/App.swift index 8aafd9d..2141e0b 100644 --- a/Example/App.swift +++ b/Example/App.swift @@ -19,8 +19,7 @@ struct App: SwiftUI.App { let reloader = Reloader(.init( targetSwiftFile: Env.shared.estimatedHomeDir! .appendingPathComponent("projects/github/SwiftHotReload") - .appendingPathComponent("Example/SwiftHotReloadExample") - .appendingPathComponent("ReplaceView.swift") + .appendingPathComponent("Example/ReplaceView.swift") )) reloader.install() return reloader diff --git a/Example/SwiftHotReloadExample.xcodeproj/project.pbxproj b/Example/SwiftHotReloadExample.xcodeproj/project.pbxproj index 6e3dc65..c5fbc62 100644 --- a/Example/SwiftHotReloadExample.xcodeproj/project.pbxproj +++ b/Example/SwiftHotReloadExample.xcodeproj/project.pbxproj @@ -292,10 +292,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = SwiftHotReloadExample/SwiftHotReloadExample.entitlements; + CODE_SIGN_ENTITLEMENTS = SwiftHotReloadExample.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_ASSET_PATHS = "\"SwiftHotReloadExample/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"Preview Content\""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; @@ -329,10 +329,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = SwiftHotReloadExample/SwiftHotReloadExample.entitlements; + CODE_SIGN_ENTITLEMENTS = SwiftHotReloadExample.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_ASSET_PATHS = "\"SwiftHotReloadExample/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"Preview Content\""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; diff --git a/FrameworkTarget/SwiftHotReload.xcodeproj/project.pbxproj b/FrameworkTarget/SwiftHotReload.xcodeproj/project.pbxproj index 2da801a..c4b5eb7 100644 --- a/FrameworkTarget/SwiftHotReload.xcodeproj/project.pbxproj +++ b/FrameworkTarget/SwiftHotReload.xcodeproj/project.pbxproj @@ -13,11 +13,11 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 630C24482AEBD3FF0012C490 /* SwiftHotReload.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SwiftHotReload.h; path = /Users/jun.ban/projects/github/SwiftHotReload/FrameworkTarget/SwiftHotReload.h; sourceTree = ""; }; + 630C24482AEBD3FF0012C490 /* SwiftHotReload.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftHotReload.h; sourceTree = SOURCE_ROOT; }; 630C24522AEBD4780012C490 /* SwiftHotReloadTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftHotReloadTests.swift; sourceTree = ""; }; - 630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TargetSwiftFile.swift; path = ../../Sources/TargetSwiftFile.swift; sourceTree = ""; }; - 630C245C2AEBD4E10012C490 /* Env.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Env.swift; path = ../../Sources/Env.swift; sourceTree = ""; }; - 630C245D2AEBD4E10012C490 /* Reloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Reloader.swift; path = ../../Sources/Reloader.swift; sourceTree = ""; }; + 630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TargetSwiftFile.swift; sourceTree = ""; }; + 630C245C2AEBD4E10012C490 /* Env.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Env.swift; sourceTree = ""; }; + 630C245D2AEBD4E10012C490 /* Reloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Reloader.swift; sourceTree = ""; }; 63980F712AEA93310099B122 /* SwiftHotReload.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftHotReload.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -39,8 +39,9 @@ 630C245D2AEBD4E10012C490 /* Reloader.swift */, 630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */, ); - path = Sources; - sourceTree = ""; + name = Sources; + path = ../Sources; + sourceTree = SOURCE_ROOT; }; 630C24512AEBD4780012C490 /* Tests */ = { isa = PBXGroup;