Commit ddb0ca66 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Command::Spec] skip xcodebuil test if executable is not available

parent f607992c
...@@ -175,13 +175,14 @@ module Pod ...@@ -175,13 +175,14 @@ module Pod
config.project_root = Pathname.pwd config.project_root = Pathname.pwd
podfile = podfile_from_spec(spec, file, platform_name) podfile = podfile_from_spec(spec, file, platform_name)
Installer.new(podfile).install! Installer.new(podfile).install!
config.silent = false config.silent = false
return messages if `which xcodebuild`.strip.empty?
output = Dir.chdir('Pods') { `xcodebuild 2>&1` } output = Dir.chdir('Pods') { `xcodebuild 2>&1` }
clean_output = process_xcode_build_output(output).map {|l| "#{platform_name}: #{l}"} clean_output = process_xcode_build_output(output).map {|l| "#{platform_name}: #{l}"}
messages += clean_output messages += clean_output
puts(output) if config.verbose? puts("\n" + output) if config.verbose?
end end
messages messages
end end
......
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