Commit 03d8362e authored by Ben Asher's avatar Ben Asher

Pass full path to workspace instead of using Dir.chdir for xcodebuild

parent f5cc0b09
...@@ -718,7 +718,7 @@ module Pod ...@@ -718,7 +718,7 @@ module Pod
# #
def xcodebuild def xcodebuild
require 'fourflusher' require 'fourflusher'
command = %w(clean build -workspace App.xcworkspace -scheme App -configuration Release) command = %W(clean build -workspace #{validation_dir}/App.xcworkspace -scheme App -configuration Release)
case consumer.platform_name case consumer.platform_name
when :ios when :ios
command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator) command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
...@@ -731,7 +731,7 @@ module Pod ...@@ -731,7 +731,7 @@ module Pod
command += Fourflusher::SimControl.new.destination(:oldest, 'tvOS', deployment_target) command += Fourflusher::SimControl.new.destination(:oldest, 'tvOS', deployment_target)
end end
output, status = Dir.chdir(validation_dir) { _xcodebuild(command) } output, status = _xcodebuild(command)
unless status.success? unless status.success?
message = 'Returned an unsuccessful exit code.' message = 'Returned an unsuccessful exit code.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment