From f5d3b7e4ea8f47bac1e14e2add1f563bd4df910a Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 23 Mar 2021 16:49:22 +0300 Subject: [PATCH] Add xcodeproj_path to code generation --- xcode/commonFastfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 5a6ad82..950a2d8 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -429,11 +429,12 @@ end # Build phases -def run_code_generation_phase_if_needed() +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] if File.exists? code_generation_script_path - sh(code_generation_script_path) + sh("code_generation_script_path ${xcodeproj_path}") end end