diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj index 73d8dc9..20b135f 100644 --- a/Demo/Demo.xcodeproj/project.pbxproj +++ b/Demo/Demo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 77; + objectVersion = 70; objects = { /* Begin PBXBuildFile section */ @@ -15,11 +15,7 @@ /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ - E2253BB32C9FD258003D69BB /* Demo */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = Demo; - sourceTree = ""; - }; + E2253BB32C9FD258003D69BB /* Demo */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Demo; sourceTree = ""; }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */ @@ -84,7 +80,7 @@ attributes = { BuildIndependentTargetsInParallel = 1; LastSwiftUpdateCheck = 1600; - LastUpgradeCheck = 1600; + LastUpgradeCheck = 1610; TargetAttributes = { E2253BB02C9FD258003D69BB = { CreatedOnToolsVersion = 16.0; @@ -92,6 +88,7 @@ }; }; buildConfigurationList = E2253BAC2C9FD258003D69BB /* Build configuration list for PBXProject "Demo" */; + compatibilityVersion = "Xcode 15.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -103,7 +100,6 @@ packageReferences = ( E2253BE72C9FD361003D69BB /* XCLocalSwiftPackageReference "../../MacControlCenterUI" */, ); - preferredProjectObjectVersion = 77; productRefGroup = E2253BB22C9FD258003D69BB /* Products */; projectDirPath = ""; projectRoot = ""; @@ -168,6 +164,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -194,6 +191,7 @@ SDKROOT = macosx; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 6.0; }; name = Debug; }; @@ -231,6 +229,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -249,6 +248,7 @@ MTL_FAST_MATH = YES; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_VERSION = 6.0; }; name = Release; }; @@ -261,6 +261,7 @@ CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = XWV9RUCWEG; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -276,7 +277,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.orchetect.MacControlCenterUI.Demo${DEVELOPMENT_TEAM}"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -289,6 +289,7 @@ CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = XWV9RUCWEG; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -304,7 +305,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.orchetect.MacControlCenterUI.Demo${DEVELOPMENT_TEAM}"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/Demo/Demo/DemoApp.swift b/Demo/Demo/DemoApp.swift index 9b8bdb6..beb7c5d 100644 --- a/Demo/Demo/DemoApp.swift +++ b/Demo/Demo/DemoApp.swift @@ -33,12 +33,12 @@ struct DemoApp: App { // MARK: App Lifecycle & Global -func activateApp() { +@MainActor func activateApp() { NSApp.activate(ignoringOtherApps: true) } /// This still works on macOS 14 thankfully. -func showStandardAboutWindow() { +@MainActor func showStandardAboutWindow() { NSApp.sendAction( #selector(NSApplication.orderFrontStandardAboutPanel(_:)), to: nil, @@ -46,6 +46,6 @@ func showStandardAboutWindow() { ) } -func quit() { +@MainActor func quit() { NSApp.terminate(nil) }