Building a scheme including multiple static library test targets fails under jenkins but works with xcodebuild from cli

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Blocker
    • Component/s: xcode-plugin
    • None
    • Environment:
      OSX lion server
      jenkins 1.450
      xcode 4.2
      plugin 1.3
      glassfish 3.1 host

      I have an XCode workspace with several projects, each building a static library target. Each library with it's own test target.

      I have created a scheme containing each of the 7 test targets each selected for build, test, run (7 targets in all)
      (parralel building is disabled in this scheme.)

      Checking out this workspace from git and running a manual xcodebuild and setting TEST_AFTER_BUILD completes the build successfully and runs the tests.

      I have also configured a jenkins build for this same workspace and scheme.

      Most of the targets build, but one generates compile errors when compiling the test target. The failures indicate redefinitions of objective c interfaces
      indicating multiple inclusions of header files. Since these files are #imported and not #included there should be no multiple-inclusion. And as mentioned
      in XCode or from a manual run of xcodebuild these errors are not appearing.

      I am wondering whether there are some additional environment variables being set in the jenkins invocation?

      or perhaps the mutiple target scheme is not supported?

            Assignee:
            Unassigned
            Reporter:
            ian carr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: