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

NullPointerException in XcodeProjectParser.listXcodeSchemes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This issue started happening with an update to 2.0.8 from 2.0.6 of the xcode plugin - I verified this by manually downgrading to 2.0.6 and testing again.

      This doesn't affect all of my builds - only the ones I archive. This is the xcodeBuild statement in the pipeline file:

      	    xcodeBuild(
      		generateArchive: true,
      		cleanBeforeBuild: false,
      		configuration: config,
      		xcodeWorkspaceFile: "${WORKSPACE_FILE}", 
      		buildDir: "${BUILD_PATH}",
      		unlockKeychain: true, 
      		keychainName: "user",
      		keychainPath: "${HOME}/Library/Keychains/login.keychain",
      		keychainPwd: "${KEYCHAIN_PASSWORD}", 
      		buildIpa: false,
      		signingMethod: "readFromProject",
      		provisioningProfiles: [
      		    [ provisioningProfileAppId: definition.bundleId,
                            provisioningProfileUUID: definition.betaProvisionId ]
      		]
      	    )
      

       

      java.lang.NullPointerException
          at au.com.rayh.XcodeProjectParser.listXcodeSchemes(XcodeProjectParser.java:52)
          at au.com.rayh.XCodeBuilder._perform(XCodeBuilder.java:1307)
          at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:1020)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
          at hudson.security.ACL.impersonate(ACL.java:290)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

        Attachments

          Activity

          Hide
          kazuhidet Kazuhide Takahashi added a comment -

          Release at 2.0.10.

          Show
          kazuhidet Kazuhide Takahashi added a comment - Release at 2.0.10.
          Hide
          kazuhidet Kazuhide Takahashi added a comment -

          Fixed the validation when multiple projects are included in WorkSpace.

          Show
          kazuhidet Kazuhide Takahashi added a comment - Fixed the validation when multiple projects are included in WorkSpace.
          Hide
          kazuhidet Kazuhide Takahashi added a comment -

          David Hedbor
          I'm fixed a bug that failed parsing in some Xcode projects and incomplete processing due to malfunction of Xcode project parser.
          There is a snapshot of the plug-in which modified the following URL, so I am glad that you can try it.
          https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fxcode-plugin/detail/PR-99/1/artifacts

          Show
          kazuhidet Kazuhide Takahashi added a comment - David Hedbor I'm fixed a bug that failed parsing in some Xcode projects and incomplete processing due to malfunction of Xcode project parser. There is a snapshot of the plug-in which modified the following URL, so I am glad that you can try it. https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fxcode-plugin/detail/PR-99/1/artifacts

            People

            • Assignee:
              kazuhidet Kazuhide Takahashi
              Reporter:
              neotron David Hedbor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: