diff --git a/lib/cocoapods/command/spec.rb b/lib/cocoapods/command/spec.rb index 8e56c1e6a7..4cc6fbe600 100644 --- a/lib/cocoapods/command/spec.rb +++ b/lib/cocoapods/command/spec.rb @@ -220,7 +220,9 @@ def notes def peform_multiplatform_analysis platform_names.each do |platform_name| set_up_lint_environment + puts "\n\n#{spec} - Analyzing on #{Platform.new platform_name} platform.".green.reversed if config.verbose? install_pod(platform_name) + puts "Building with xcodebuild.\n".yellow if config.verbose? xcodebuild_output.concat(xcodebuild_output_for_platfrom(platform_name)) file_patterns_errors.concat(file_patterns_errors_for_platfrom(platform_name)) tear_down_lint_environment @@ -232,13 +234,21 @@ def platform_names end def install_pod(platform_name) - puts "\n\n#{spec} - generating build errors for #{platform_name} platform".yellow.reversed if config.verbose? podfile = podfile_from_spec(platform_name) config.verbose Installer.new(podfile).install! config.silent end + def podfile_from_spec(platform_name) + name = spec.name + podspec = file.realpath.to_s + podfile = Pod::Podfile.new do + platform platform_name + dependency name, :podspec => podspec + end + end + def set_up_lint_environment tmp_dir.rmtree if tmp_dir.exist? tmp_dir.mkpath @@ -334,7 +344,7 @@ def github_source? def deprecation_warnings text = @file.read deprecations = [] - deprecations << "`config.ios?' and `config.osx' will be removed in version 0.7" if text. =~ /config\..os?/ + deprecations << "`config.ios?' and `config.osx?' are deprecated and will be removed in version 0.7" if text. =~ /config\..?os.?/ deprecations << "The `post_install' hook is reserved for edge cases" if text. =~ /post_install/ deprecations end @@ -366,15 +376,6 @@ def xcodebuild_output_for_platfrom(platform_name) messages end - def podfile_from_spec(platform_name) - name = spec.name - podspec = file.realpath.to_s - podfile = Pod::Podfile.new do - platform platform_name - dependency name, :podspec => podspec - end - end - def process_xcode_build_output(output) output_by_line = output.split("\n") selected_lines = output_by_line.select do |l|