• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • xcode-plugin
    • jenkins 2.19.2, xcode 8

      I'm trying to run tests from a project that uses cocoapods.
      This means I have to specify the workspace name. When I do so as well as giving the scheme name the xcode plugin will just hang at this point forever (I actually let it run for 30min before killing it several times)

      Going to invoke xcodebuild:, scheme: ttt, sdk: DEFAULT, workspace: ttt, configuration: Debug, clean: NO, archive:NO, symRoot: DEFAULT, configurationBuildDir: DEFAULT, codeSignIdentity: DEFAULT
      [lbp-iOS] $ /usr/bin/xcodebuild -scheme ttt -workspace ttt.xcworkspace -configuration Debug build test -destination "platform=iOS Simulator,name=iPhone 6,OS=10.1"
      

      It seems to me that there might be something wrong with the plugin that causes it to hang in this specific case.

      I've also created a stackoverflow for this http://stackoverflow.com/questions/40536087/unit-test-ios-with-jenkins.

          [JENKINS-39666] xcode plugin hangs when using workspace

          Mike Delaney added a comment - - edited

          mhermans I've seen this with Xcode 8.1 and using the 'Jenkinsfile' approach as well; but not in the 'Freestyle' item type. This might not be completely related to the xcode-plugin.

          To be clear, what I see is that the Jenkinsfile is running as expected but once I issue sh "xcodebuild -scheme <scheme> clean archive". It just hangs there after printing out the aforementioned xcode invocation. I've left it there for 6 hours with no (visible) progress made.

          Mike Delaney added a comment - - edited mhermans I've seen this with Xcode 8.1 and using the 'Jenkinsfile' approach as well; but not in the 'Freestyle' item type. This might not be completely related to the xcode-plugin. To be clear, what I see is that the Jenkinsfile is running as expected but once I issue sh "xcodebuild -scheme <scheme> clean archive" . It just hangs there after printing out the aforementioned xcode invocation. I've left it there for 6 hours with no (visible) progress made.

          Mike Delaney added a comment -

          So after digging around, I found that I had to 'share' the project schemes with the workspace. This is done via:

          • Open your workspace in Xcode
          • In the scheme drop down select 'Manage Schemes'
          • Click 'Share' on the appropriate schemes.

          Mike Delaney added a comment - So after digging around, I found that I had to 'share' the project schemes with the workspace. This is done via: Open your workspace in Xcode In the scheme drop down select 'Manage Schemes' Click 'Share' on the appropriate schemes.

            Unassigned Unassigned
            mhermans Maiko Hermans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: