Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix framework target and the example target in the xcworkspace #6

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Example/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Example/SwiftHotReloadExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
13 changes: 7 additions & 6 deletions FrameworkTarget/SwiftHotReload.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<absolute>"; };
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 = "<group>"; };
630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TargetSwiftFile.swift; path = ../../Sources/TargetSwiftFile.swift; sourceTree = "<group>"; };
630C245C2AEBD4E10012C490 /* Env.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Env.swift; path = ../../Sources/Env.swift; sourceTree = "<group>"; };
630C245D2AEBD4E10012C490 /* Reloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Reloader.swift; path = ../../Sources/Reloader.swift; sourceTree = "<group>"; };
630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TargetSwiftFile.swift; sourceTree = "<group>"; };
630C245C2AEBD4E10012C490 /* Env.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Env.swift; sourceTree = "<group>"; };
630C245D2AEBD4E10012C490 /* Reloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Reloader.swift; sourceTree = "<group>"; };
63980F712AEA93310099B122 /* SwiftHotReload.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftHotReload.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

Expand All @@ -39,8 +39,9 @@
630C245D2AEBD4E10012C490 /* Reloader.swift */,
630C245B2AEBD4E10012C490 /* TargetSwiftFile.swift */,
);
path = Sources;
sourceTree = "<group>";
name = Sources;
path = ../Sources;
sourceTree = SOURCE_ROOT;
};
630C24512AEBD4780012C490 /* Tests */ = {
isa = PBXGroup;
Expand Down
Loading