Skip to content

Commit dd42a15

Browse files
committed
Update Example
1 parent 218dd4a commit dd42a15

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

Example/Example.xcodeproj/project.pbxproj

+22-10
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,13 @@
354354
CODE_SIGN_STYLE = Automatic;
355355
CURRENT_PROJECT_VERSION = 1;
356356
DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\"";
357-
DEVELOPMENT_TEAM = VB7MJ8R223;
357+
DEVELOPMENT_TEAM = "";
358358
ENABLE_HARDENED_RUNTIME = YES;
359359
ENABLE_PREVIEWS = YES;
360+
GCC_PREPROCESSOR_DEFINITIONS = (
361+
"OPENSWIFTUI=1",
362+
"$(inherited)",
363+
);
360364
GENERATE_INFOPLIST_FILE = YES;
361365
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
362366
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
@@ -373,10 +377,11 @@
373377
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
374378
MACOSX_DEPLOYMENT_TARGET = 10.15;
375379
MARKETING_VERSION = 1.0;
376-
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.OpenSwiftUIExample;
380+
PRODUCT_BUNDLE_IDENTIFIER = org.OpenSwiftUIProject.OpenSwiftUI.Example;
377381
PRODUCT_NAME = "$(TARGET_NAME)";
378382
SDKROOT = auto;
379383
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
384+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "OPENSWIFTUI $(inherited)";
380385
SWIFT_EMIT_LOC_STRINGS = YES;
381386
SWIFT_VERSION = 5.0;
382387
TARGETED_DEVICE_FAMILY = "1,2";
@@ -390,7 +395,11 @@
390395
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
391396
CODE_SIGN_STYLE = Automatic;
392397
CURRENT_PROJECT_VERSION = 1;
393-
DEVELOPMENT_TEAM = VB7MJ8R223;
398+
DEVELOPMENT_TEAM = "";
399+
GCC_PREPROCESSOR_DEFINITIONS = (
400+
"OPENSWIFTUI=1",
401+
"$(inherited)",
402+
);
394403
GENERATE_INFOPLIST_FILE = YES;
395404
INFOPLIST_FILE = HostingExample/Info.plist;
396405
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -404,7 +413,7 @@
404413
"@executable_path/Frameworks",
405414
);
406415
MARKETING_VERSION = 1.0;
407-
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.HostingExample;
416+
PRODUCT_BUNDLE_IDENTIFIER = org.OpenSwiftUIProject.OpenSwiftUI.HostingExample;
408417
PRODUCT_NAME = "$(TARGET_NAME)";
409418
SDKROOT = iphoneos;
410419
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -487,9 +496,10 @@
487496
CODE_SIGN_STYLE = Automatic;
488497
CURRENT_PROJECT_VERSION = 1;
489498
DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\"";
490-
DEVELOPMENT_TEAM = VB7MJ8R223;
499+
DEVELOPMENT_TEAM = "";
491500
ENABLE_HARDENED_RUNTIME = YES;
492501
ENABLE_PREVIEWS = YES;
502+
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
493503
GENERATE_INFOPLIST_FILE = YES;
494504
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
495505
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
@@ -501,15 +511,16 @@
501511
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
502512
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
503513
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
504-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
514+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
505515
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
506516
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
507-
MACOSX_DEPLOYMENT_TARGET = 10.15;
517+
MACOSX_DEPLOYMENT_TARGET = 12.0;
508518
MARKETING_VERSION = 1.0;
509-
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.OpenSwiftUIExample;
519+
PRODUCT_BUNDLE_IDENTIFIER = org.OpenSwiftUIProject.OpenSwiftUI.Example;
510520
PRODUCT_NAME = "$(TARGET_NAME)";
511521
SDKROOT = auto;
512522
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
523+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
513524
SWIFT_EMIT_LOC_STRINGS = YES;
514525
SWIFT_VERSION = 5.0;
515526
TARGETED_DEVICE_FAMILY = "1,2";
@@ -523,7 +534,8 @@
523534
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
524535
CODE_SIGN_STYLE = Automatic;
525536
CURRENT_PROJECT_VERSION = 1;
526-
DEVELOPMENT_TEAM = VB7MJ8R223;
537+
DEVELOPMENT_TEAM = "";
538+
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
527539
GENERATE_INFOPLIST_FILE = YES;
528540
INFOPLIST_FILE = HostingExample/Info.plist;
529541
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -537,7 +549,7 @@
537549
"@executable_path/Frameworks",
538550
);
539551
MARKETING_VERSION = 1.0;
540-
PRODUCT_BUNDLE_IDENTIFIER = top.kyleye.HostingExample;
552+
PRODUCT_BUNDLE_IDENTIFIER = org.OpenSwiftUIProject.OpenSwiftUI.HostingExample;
541553
PRODUCT_NAME = "$(TARGET_NAME)";
542554
SDKROOT = iphoneos;
543555
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";

Example/Example/ContentView.swift

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by Kyle on 2023/11/9.
66
//
77

8+
#if OPENSWIFTUI
89
import OpenSwiftUI
10+
#else
11+
import SwiftUI
12+
#endif
913

1014
struct ContentView: View {
1115
var body: some View {

Example/Example/ExampleApp.swift

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by Kyle on 2023/11/9.
66
//
77

8+
#if OPENSWIFTUI
89
import OpenSwiftUI
10+
#else
11+
import SwiftUI
12+
#endif
913

1014
@main
1115
struct ExampleApp: App {

0 commit comments

Comments
 (0)