From f80f12559961288ef353ea3b2ed88b5dcd5a498a Mon Sep 17 00:00:00 2001 From: stopflock Date: Wed, 8 Oct 2025 22:39:56 -0500 Subject: [PATCH] macos debug builds w/o signing --- macos/Podfile | 8 ++++++++ macos/Runner.xcodeproj/project.pbxproj | 2 +- macos/Runner/DebugProfile.entitlements | 12 ++++-------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/macos/Podfile b/macos/Podfile index ff5ddb3..962b444 100644 --- a/macos/Podfile +++ b/macos/Podfile @@ -38,5 +38,13 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) + + # Ensure minimum deployment target is 10.13 or higher for all pods + target.build_configurations.each do |config| + deployment_target = config.build_settings['MACOSX_DEPLOYMENT_TARGET'] + if deployment_target && deployment_target.to_f < 10.13 + config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.13' + end + end end end diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 68eaccd..638b751 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -572,7 +572,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index 872a26b..084e298 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -2,17 +2,13 @@ - com.apple.security.network.client - - com.apple.security.app-sandbox - com.apple.security.cs.allow-jit + com.apple.security.cs.disable-library-validation + + com.apple.security.network.client + com.apple.security.network.server - keychain-access-groups - - $(AppIdentifierPrefix)me.deflock.deflockapp -