From 9e8f1754bd0a625e164e665b3fb5f3ecb4165be5 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Tue, 17 Jan 2023 10:35:50 +0300 Subject: [PATCH] Xcode 14 building flags added --- ios_build_settings_renderer/models.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ios_build_settings_renderer/models.py b/ios_build_settings_renderer/models.py index c0b0b03..e803089 100644 --- a/ios_build_settings_renderer/models.py +++ b/ios_build_settings_renderer/models.py @@ -38,7 +38,10 @@ class XCConfig(XCConfigTuple): XCConfigOption.swift_optimization_level, XCConfigOption.swift_compilation_mode, XCConfigOption.assetcatalog_compiler_optimization, - XCConfigOption.other_swift_flags + XCConfigOption.other_swift_flags, + XCConfigOption.deployment_postprocessing, + XCConfigOption.strip_installed_product, + XCConfigOption.stripflags ]) ) @@ -123,6 +126,18 @@ class XCConfigOption(XCConfigOptionTuple): def other_swift_flags(selectors_dict): return XCConfigOption.__from_key_and_value_based_on_value_in_selectors("OTHER_SWIFT_FLAGS", "$(inherited) -Xfrontend -warn-long-expression-type-checking=500 -Xfrontend -warn-long-function-bodies=500 -Xfrontend -enable-actor-data-race-checks", "$(inherited)", selectors_dict) + @staticmethod + def deployment_postprocessing(selectors_dict): + return XCConfigOption.__from_key_and_value_based_on_value_in_selectors("DEPLOYMENT_POSTPROCESSING", "YES", "NO", selectors_dict) + + @staticmethod + def strip_installed_product(selectors_dict): + return XCConfigOption.__from_key_and_value_based_on_value_in_selectors("STRIP_INSTALLED_PRODUCT", "YES", "NO", selectors_dict) + + @staticmethod + def stripflags(selectors_dict): + return XCConfigOption.__from_key_and_value_based_on_value_in_selectors("STRIPFLAGS", "-rSTx", "", selectors_dict) + @staticmethod def __from_key_and_value_based_on_value_in_selectors(key, value_if_contains, otherwise_value, selectors_dict, expected_value="Debug"):