diff --git a/xcode/commonFastfile b/xcode/commonFastfile index a0f4641..28cca96 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -439,10 +439,11 @@ end # Build phases def run_code_generation_phase_if_needed(options) + appName = options[:appName] || $appName code_generation_script_path = File.expand_path "../.githooks/scripts/CodeGen.sh" - xcodeproj_path = File.expand_path options[:xcodeproj_path] + workspace_path = File.expand_path "../#{appName}.xcworkspace" if File.exists? code_generation_script_path - sh(code_generation_script_path, xcodeproj_path) + sh(code_generation_script_path, workspace_path) end end