• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • xcode-plugin
    • None
    • Mac OS X El Capitan

      The archive option no longer works with newer Xcode versions as it has been obsoleted. It can be called via this command instead:
      xcodebuild -project "XXX.xcodeproj" -scheme "Unity-iPhone" -configuration Release archive

      Would be great if the plugin could be updated to support this.

      Thanks!

      • Tommi

          [JENKINS-31398] Archive no longer works

          Chia Chin Chang added a comment - - edited

          I can't archive the build too.
          But from the console output, It is as follow:


          [MyProject] $ /usr/bin/xcodebuild -scheme MyTarget -project MyProject.xcodeproj -configuration Release clean build archive CONFIGURATION_BUILD_DIR=/Users/Shared/Jenkins/Home/jobs/ProjectA/workspace/archive".
          Build settings from command line:
          CONFIGURATION_BUILD_DIR = /Users/Shared/Jenkins/Home/jobs/ProjectA/workspace/archive


          And for a very long time, it still stock here.
          if not using "Generate Archive?" and not fill "MyTarget " as "Xcode Schema File", the .ipa generate without error.

          Any suggestion?

          Chia Chin Chang added a comment - - edited I can't archive the build too. But from the console output, It is as follow: [MyProject] $ /usr/bin/xcodebuild -scheme MyTarget -project MyProject.xcodeproj -configuration Release clean build archive CONFIGURATION_BUILD_DIR=/Users/Shared/Jenkins/Home/jobs/ProjectA/workspace/archive". Build settings from command line: CONFIGURATION_BUILD_DIR = /Users/Shared/Jenkins/Home/jobs/ProjectA/workspace/archive And for a very long time, it still stock here. if not using "Generate Archive?" and not fill "MyTarget " as "Xcode Schema File", the .ipa generate without error. Any suggestion?

          tommigun what do you mean when you say it "no longer works"? What command does it execute in the log and what is the result?
          Note that the xcarchive is saved to /Users/YourUser/Library/Developer/Xcode/Archives, see http://stackoverflow.com/questions/8722633/generate-xcarchive-into-a-specific-folder-from-the-command-line

          Ohad Schneider added a comment - tommigun what do you mean when you say it "no longer works"? What command does it execute in the log and what is the result? Note that the xcarchive is saved to /Users/YourUser/Library/Developer/Xcode/Archives , see http://stackoverflow.com/questions/8722633/generate-xcarchive-into-a-specific-folder-from-the-command-line

          Sean Olszewski added a comment - - edited

          I have the same issue - my Jenkins project runs fine until it calls xcodebuild. Once it does that, it stalls on the command, just like how it is for Chia Chin Chang. My log is so:

          Going to invoke xcodebuild:, scheme: MY_PROJECT_NAME, sdk: DEFAULT, workspace: MY_PROJECT_NAME, configuration: Release, clean: YES, archive:NO, symRoot: DEFAULT, configurationBuildDir: /Users/devop/workspace/MY_PROJECT_NAME/build, codeSignIdentity: DEFAULT
          
          [MY_PROJECT_NAME] $ /usr/bin/xcodebuild -scheme MY_PROJECT_NAME -workspace MY_PROJECT_NAME.xcworkspace -configuration Release clean build CONFIGURATION_BUILD_DIR=/Users/devop/workspace/MY_PROJECT_NAME/build
          
          Build settings from command line:
              CONFIGURATION_BUILD_DIR = /Users/devop/workspace/MY_PROJECT_NAME/build
          

          Sean Olszewski added a comment - - edited I have the same issue - my Jenkins project runs fine until it calls xcodebuild. Once it does that, it stalls on the command, just like how it is for Chia Chin Chang. My log is so: Going to invoke xcodebuild:, scheme: MY_PROJECT_NAME, sdk: DEFAULT, workspace: MY_PROJECT_NAME, configuration: Release, clean: YES, archive:NO, symRoot: DEFAULT, configurationBuildDir: /Users/devop/workspace/MY_PROJECT_NAME/build, codeSignIdentity: DEFAULT [MY_PROJECT_NAME] $ /usr/bin/xcodebuild -scheme MY_PROJECT_NAME -workspace MY_PROJECT_NAME.xcworkspace -configuration Release clean build CONFIGURATION_BUILD_DIR=/Users/devop/workspace/MY_PROJECT_NAME/build Build settings from command line: CONFIGURATION_BUILD_DIR = /Users/devop/workspace/MY_PROJECT_NAME/build

          Archiving does not work anymore for me as well.

          • Xcode Version 7.2.1
          • OSX Yosemite 10.10.5

          Build command is:

          /usr/bin/xcodebuild -target MY_PROJECT -configuration Release clean build archive 
          CONFIGURATION_BUILD_DIR=/MY_BUILDDIR/build/MY_PROJECT.build "CODE_SIGN_IDENTITY=iPhone 
          Distribution: MY_IDENTITY" PROVISIONING_PROFILE=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
          "ARCHS=armv7 arm64" ONLY_ACTIVE_ARCH=NO "VALID_ARCHS=armv7 arm64 armv7s" 
          COPY_PHASE_STRIP=YES SEPARATE_STRIP=YES DEAD_CODE_STRIPPING=YES 
          STRIP_INSTALLED_PRODUCT=YES DEPLOYMENT_POSTPROCESSING=YES ENABLE_BITCODE=NO 
          DEBUG_INFORMATION_FORMAT=dwarf-with-dsym IPHONEOS_DEPLOYMENT_TARGET=7.0
          

          Error is:

          12:32:28 ** BUILD SUCCEEDED **
          12:32:28 
          12:32:28 === BUILD TARGET Unity-iPhone OF PROJECT MY_PROJECT WITH CONFIGURATION Release ===
          12:32:28 
          12:32:28 Check dependencies
          12:32:29 unsupported build action 'archive'
          12:32:29 
          12:32:29 ** ARCHIVE FAILED **
          

          Andreas Katzig added a comment - Archiving does not work anymore for me as well. Xcode Version 7.2.1 OSX Yosemite 10.10.5 Build command is: /usr/bin/xcodebuild -target MY_PROJECT -configuration Release clean build archive CONFIGURATION_BUILD_DIR=/MY_BUILDDIR/build/MY_PROJECT.build "CODE_SIGN_IDENTITY=iPhone Distribution: MY_IDENTITY" PROVISIONING_PROFILE=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx "ARCHS=armv7 arm64" ONLY_ACTIVE_ARCH=NO "VALID_ARCHS=armv7 arm64 armv7s" COPY_PHASE_STRIP=YES SEPARATE_STRIP=YES DEAD_CODE_STRIPPING=YES STRIP_INSTALLED_PRODUCT=YES DEPLOYMENT_POSTPROCESSING=YES ENABLE_BITCODE=NO DEBUG_INFORMATION_FORMAT=dwarf-with-dsym IPHONEOS_DEPLOYMENT_TARGET=7.0 Error is: 12:32:28 ** BUILD SUCCEEDED ** 12:32:28 12:32:28 === BUILD TARGET Unity-iPhone OF PROJECT MY_PROJECT WITH CONFIGURATION Release === 12:32:28 12:32:28 Check dependencies 12:32:29 unsupported build action 'archive' 12:32:29 12:32:29 ** ARCHIVE FAILED **

            Unassigned Unassigned
            tommigun Tommi Kiviniemi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: