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

NullPointerException in XcodeProjectParser.listXcodeSchemes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • xcode-plugin
    • None

      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

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

              Created:
              Updated:
              Resolved: