title: Generating Code coverage with Fastlane/Jenkins
body: <p>I'm trying to generate a code coverage with Sonar/Jenkins by Fastlane.</p>
  
  <p>The script I run with Jenkins: Fastlane test.</p>
  
  <p>In my fastfile i do this: </p>
  
  <pre><code>desc "Runs all the tests"
  lane :test do
    scan(scheme: "XXX-icTests",
      clean: true,
      code_coverage: true,
      output_directory: "sonar-reports",
      output_types: "junit,json-compilation-database",
      buildlog_path: "sonar-reports",
      derived_data_path: "sonar-reports",
      use_clang_report_name: true,
      xcargs: "ONLY_ACTIVE_ARCH=YES"
    )
    slather(
      cobertura_xml: true,
      output_directory: "sonar-reports",
      proj: " XXX.xcodeproj",
      workspace: " XXX.xcworkspace",
      scheme: " XXX-ic",
      build_directory: "sonar-reports",
      ignore:[]
    )
    oclint(
      compile_commands: "sonar-reports/compile_commands.json",
      report_type: 'pmd',
      select_regex: /XXX/,
      max_priority_1: 10,
      max_priority_2: 400,
      max_priority_3: 4000,
      enable_clang_static_analyzer: false,
      allow_duplicated_violations: false,
      list_enabled_rules: true,
      report_path: "sonar-reports/oclint.xml"
    ) 
    sonar
  end
  </code></pre>
  
  <p>But when building the app on the simulator it stops here: </p>
  
  <p><a href="https://i.stack.imgur.com/LC8t6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LC8t6.png" alt="enter image description here"></a></p>
  
  <p>What can be the problem in this case? </p>
  
  <p>Thanks for the help.</p>