Idean / sonar-swift

Open source Swift plugin for SonarQube (also supports Objective-C)
Other
896 stars 276 forks source link

Conflicting xcpretty version when using Fastlane #159

Open rs-georg opened 6 years ago

rs-georg commented 6 years ago

I'm using Fastlane to create and upload the metrics. However, there is a conflict regarding the version of xcpretty. According to the docs xcpretty 0.2.2 w/ the fix is required. Fastlane, however, requires 0.2.8.

Here is the result of bundle install

Bundler could not find compatible versions for gem "xcpretty":
  In Gemfile:
    xcpretty (= 0.2.2)

    fastlane-plugin-lizard was resolved to 1.1.1, which depends on
      fastlane was resolved to 2.102.0, which depends on
        xcpretty (~> 0.2.8)

Could not find gem 'xcpretty (~> 0.2.8)', which is required by gem 'fastlane', in any of the relevant sources:
  https://github.com/Backelite/xcpretty.git (at fix/duration_of_failed_tests_workaround@4ad2c4e)

Here is my Gemfile

source "https://rubygems.org"

gem "fastlane"
gem "xcode-install"
gem "slather"
gem "xcpretty", '0.2.2', :git => "https://github.com/Backelite/xcpretty.git", :branch => "fix/duration_of_failed_tests_workaround"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
gaelfoppolo commented 5 years ago

To fix this issue, the fork of xcpretty should integrate newer changes of the official repo. Can you perform the changes and submit a PR?