From 908f69b1f844e6a24f43729097a5080b9442699e Mon Sep 17 00:00:00 2001 From: Vlad Suhomlinov <> Date: Thu, 13 May 2021 17:27:51 +0300 Subject: [PATCH 1/4] feat: run code generation for workspace --- xcode/commonFastfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index a0f4641..0ede997 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -440,9 +440,9 @@ end def run_code_generation_phase_if_needed(options) code_generation_script_path = File.expand_path "../.githooks/scripts/CodeGen.sh" - xcodeproj_path = File.expand_path options[:xcodeproj_path] + workspace_path = File.expand_path options[:workspace] if File.exists? code_generation_script_path - sh(code_generation_script_path, xcodeproj_path) + sh(code_generation_script_path, workspace_path) end end From a132bcd9396d3f27072a81a595dd12fb55870dc6 Mon Sep 17 00:00:00 2001 From: Vlad Suhomlinov <> Date: Thu, 13 May 2021 17:41:44 +0300 Subject: [PATCH 2/4] refactor: update path to xcworkspace --- xcode/commonFastfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 0ede997..2210ad8 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -108,7 +108,7 @@ private_lane :buildConfiguration do |options| installDependencies(options) - run_code_generation_phase_if_needed(options) + run_code_generation_phase_if_needed() generate_enabled_features_extension_if_needed(options) if !(options[:uploadToFabric] || options[:uploadToAppStore]) @@ -438,9 +438,9 @@ end # Build phases -def run_code_generation_phase_if_needed(options) +def run_code_generation_phase_if_needed: code_generation_script_path = File.expand_path "../.githooks/scripts/CodeGen.sh" - workspace_path = File.expand_path options[:workspace] + workspace_path = File.expand_path "../#{appName}.xcworkspace" if File.exists? code_generation_script_path sh(code_generation_script_path, workspace_path) From fa9ccef66befbd31c4573535a5c417c60fcfbc86 Mon Sep 17 00:00:00 2001 From: Vlad Suhomlinov <> Date: Thu, 13 May 2021 17:47:15 +0300 Subject: [PATCH 3/4] refactor: correct typo --- xcode/commonFastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 2210ad8..52a1906 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -438,7 +438,7 @@ end # Build phases -def run_code_generation_phase_if_needed: +def run_code_generation_phase_if_needed() code_generation_script_path = File.expand_path "../.githooks/scripts/CodeGen.sh" workspace_path = File.expand_path "../#{appName}.xcworkspace" From 045b57e72d52fabc42f533f00f3f2e7ddc261774 Mon Sep 17 00:00:00 2001 From: Vlad Suhomlinov <> Date: Thu, 13 May 2021 17:56:37 +0300 Subject: [PATCH 4/4] refactor: complete app name --- xcode/commonFastfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 52a1906..28cca96 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -108,7 +108,7 @@ private_lane :buildConfiguration do |options| installDependencies(options) - run_code_generation_phase_if_needed() + run_code_generation_phase_if_needed(options) generate_enabled_features_extension_if_needed(options) if !(options[:uploadToFabric] || options[:uploadToAppStore]) @@ -438,7 +438,8 @@ end # Build phases -def run_code_generation_phase_if_needed() +def run_code_generation_phase_if_needed(options) + appName = options[:appName] || $appName code_generation_script_path = File.expand_path "../.githooks/scripts/CodeGen.sh" workspace_path = File.expand_path "../#{appName}.xcworkspace"