Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23008

"xcodebuild: error: option '-activetarget' is no longer supported" when using clang-scanbuild plugin on xcode 5.1.1

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • clang-scanbuild-plugin
    • Mac OSX 10.8.5, Xcode version 5.1.1, clang checker version 276, Jenkins version 1.554.1 (running on a Linux host, executing jobs on the Mac as a slave node)

      I'm getting an error "xcodebuild: error: option '-activetarget' is no longer supported" in the console output when trying to use the clang-scanbuild plugin while building an iOS application. I'm assuming that the latest version of Xcode has deprecated this option and that the plugin needs to be updated to no longer use it. Manually running scan-build from the command line without this option appears to work fine. I have attached the full error log as shown in the Jenkins console.

          [JENKINS-23008] "xcodebuild: error: option '-activetarget' is no longer supported" when using clang-scanbuild plugin on xcode 5.1.1

          Code changed in jenkins
          User: Craig Rodrigues
          Path:
          src/main/java/jenkins/plugins/clangscanbuild/ClangScanBuildDescriptor.java
          src/main/java/jenkins/plugins/clangscanbuild/commands/ScanBuildCommand.java
          src/test/java/jenkins/plugins/clangscanbuild/commands/ScanBuildCommandTest.java
          http://jenkins-ci.org/commit/clang-scanbuild-plugin/b970f5280a9c1929e9cd9d3b4d2b76a7d6cbc0dc
          Log:
          Remove obsolete "-activetarget" flag

          It is not longer supported by XCode.

          [FIXED JENKINS-23008]

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Craig Rodrigues Path: src/main/java/jenkins/plugins/clangscanbuild/ClangScanBuildDescriptor.java src/main/java/jenkins/plugins/clangscanbuild/commands/ScanBuildCommand.java src/test/java/jenkins/plugins/clangscanbuild/commands/ScanBuildCommandTest.java http://jenkins-ci.org/commit/clang-scanbuild-plugin/b970f5280a9c1929e9cd9d3b4d2b76a7d6cbc0dc Log: Remove obsolete "-activetarget" flag It is not longer supported by XCode. [FIXED JENKINS-23008]

            jkennedy1980 Josh Kennedy
            colinsauze Colin Sauze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: