From 2029500d43ad055bfb7e40823a828597f44b4f57 Mon Sep 17 00:00:00 2001 From: henteko Date: Thu, 29 Oct 2020 18:43:49 +0900 Subject: [PATCH] Support for Cocoapods workspace --- lib/deploygate/xcode/ios.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/deploygate/xcode/ios.rb b/lib/deploygate/xcode/ios.rb index 3a858a7..988437e 100644 --- a/lib/deploygate/xcode/ios.rb +++ b/lib/deploygate/xcode/ios.rb @@ -28,10 +28,16 @@ def build(ios_analyze, values = { export_method: export_method, - project: ios_analyze.xcodeproj, configuration: build_configuration || DeployGate::Xcode::Analyze::DEFAULT_BUILD_CONFIGURATION, scheme: target_scheme } + + if ios_analyze.build_workspace + values[:workspace] = ios_analyze.build_workspace + else + values[:project] = ios_analyze.xcodeproj + end + values[:codesigning_identity] = codesigning_identity if codesigning_identity if allow_provisioning_updates values[:xcargs] = '-allowProvisioningUpdates'