From 8647433cb8cc3362c8de924a8c01088e7ea4a5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Ko=C5=82akowski?= Date: Sat, 23 Sep 2023 21:18:47 +0200 Subject: [PATCH] App: Deployment target updated to macOS 13.0 Ventura & Xcode 15 From now on, current DevCleaner version will support current - 1 OS --- DevCleaner.xcodeproj/project.pbxproj | 7 ++++--- DevCleaner/Managers/FeedbackMailer.swift | 2 +- .../Extensions/URL+AcquireAccessFromSandbox.swift | 2 +- .../Preferences Window/PreferencesViewController.swift | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/DevCleaner.xcodeproj/project.pbxproj b/DevCleaner.xcodeproj/project.pbxproj index 57de7a4..f0493de 100644 --- a/DevCleaner.xcodeproj/project.pbxproj +++ b/DevCleaner.xcodeproj/project.pbxproj @@ -351,8 +351,9 @@ 7110B4862030F17B00EDBFA3 /* Project object */ = { isa = PBXProject; attributes = { + BuildIndependentTargetsInParallel = YES; LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1400; + LastUpgradeCheck = 1500; ORGANIZATIONNAME = "One Minute Games"; TargetAttributes = { 7110B48D2030F17B00EDBFA3 = { @@ -619,7 +620,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MACOSX_DEPLOYMENT_TARGET = 11.0; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 2.4.0; PRODUCT_BUNDLE_IDENTIFIER = com.oneminutegames.XcodeCleaner; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -643,7 +644,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MACOSX_DEPLOYMENT_TARGET = 11.0; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 2.4.0; PRODUCT_BUNDLE_IDENTIFIER = com.oneminutegames.XcodeCleaner; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/DevCleaner/Managers/FeedbackMailer.swift b/DevCleaner/Managers/FeedbackMailer.swift index 979f05e..a055ce3 100644 --- a/DevCleaner/Managers/FeedbackMailer.swift +++ b/DevCleaner/Managers/FeedbackMailer.swift @@ -20,7 +20,7 @@ public final class FeedbackMailer { // MARK: System profile private func macModelIdentifier() -> String? { - let service = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPlatformExpertDevice")) + let service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPlatformExpertDevice")) var modelIdentifier: String? if let modelData = IORegistryEntryCreateCFProperty(service, "model" as CFString, kCFAllocatorDefault, 0).takeRetainedValue() as? Data { modelIdentifier = String(data: modelData, encoding: .utf8)?.trimmingCharacters(in: .controlCharacters) diff --git a/DevCleaner/Utilities/Extensions/URL+AcquireAccessFromSandbox.swift b/DevCleaner/Utilities/Extensions/URL+AcquireAccessFromSandbox.swift index 4cea34b..d5d4852 100644 --- a/DevCleaner/Utilities/Extensions/URL+AcquireAccessFromSandbox.swift +++ b/DevCleaner/Utilities/Extensions/URL+AcquireAccessFromSandbox.swift @@ -73,7 +73,7 @@ extension URL { openPanel.message = openPanelMessage openPanel.prompt = "Open" - openPanel.allowedFileTypes = ["none"] + openPanel.allowedContentTypes = [] openPanel.allowsOtherFileTypes = false openPanel.canChooseDirectories = true diff --git a/DevCleaner/View Controllers/Preferences Window/PreferencesViewController.swift b/DevCleaner/View Controllers/Preferences Window/PreferencesViewController.swift index dca1b34..7db19a9 100644 --- a/DevCleaner/View Controllers/Preferences Window/PreferencesViewController.swift +++ b/DevCleaner/View Controllers/Preferences Window/PreferencesViewController.swift @@ -69,7 +69,7 @@ final class PreferencesViewController: NSViewController { openPanel.message = "Choose a new location" openPanel.prompt = "Choose" - openPanel.allowedFileTypes = ["none"] + openPanel.allowedContentTypes = [] openPanel.allowsOtherFileTypes = false openPanel.canChooseDirectories = true