• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • xcode-plugin
    • None

      In "General build settings" of Jenkins Xcode Plugin version 2.0.0, I have not checked the box against "Generate Archive?" field, but when I run the build job it takes "archive:YES" always.

      Log as below:-

      Going to invoke xcodebuild:target: SDKIntegrationProj, sdk: iphoneos10.3, project: SDKIntegrationProj.xcodeproj, configuration: Release, clean: NO, archive:YES, symRoot: DEFAULT, buildDir: DEFAULT, developmentTeamID: <########>

      Due to this it results in error as below:-

      xcodebuild: error: The flag -scheme is required when specifying -archivePath but not -exportArchive. Build step 'Xcode' marked build as failure

      I tried checking the box against "Generate Archive?" field and then un-checking it and re-run it. It still results the same error.

          [JENKINS-44574] xCode plugin build Archives always.

          Yuuki Walsh added a comment -

          Same problem, this is preventing all my xcode builds from completing successfully.

          Yuuki Walsh added a comment - Same problem, this is preventing all my xcode builds from completing successfully.

          Arnaud Héritier added a comment - The "problem" comes from : https://github.com/jenkinsci/xcode-plugin/blob/master/src/main/java/au/com/rayh/XCodeBuilder.java#L628 buildIpa is true in the configuration thus the activation and this change was introduced in 2.0.0 by  https://github.com/jenkinsci/xcode-plugin/commit/de240a9c2e192fba7d8c6d7509b9e8c00b102307#diff-17465c0c4b12a84b7f1517a005c26eecL587  

          See comments in https://github.com/jenkinsci/xcode-plugin/pull/78

          In "Advanced Xcode build options" ==> "Xcode Schema File" step, you should fill your project scheme in the form.

          Looks like the same (non-)issue… Archive is generated when an IPA build is requested. And as no Scheme is specified…
          Looks like the Scheme option would now need to be unburied from the Advanced options to be more visible. Or an update of the description of the Build IPA option might help.

          Arnaud Héritier added a comment - See comments in https://github.com/jenkinsci/xcode-plugin/pull/78 In "Advanced Xcode build options" ==> "Xcode Schema File" step, you should fill your project scheme in the form. Looks like the same (non-)issue… Archive is generated when an IPA build is requested. And as no Scheme is specified… Looks like the Scheme option would now need to be unburied from the Advanced options to be more visible. Or an update of the description of the Build IPA option might help.

            lampietti lampietti
            u_shadchnev Yury Shadchnev
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: