Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19885

Xcode task fails with '' is not a workspace file if IPA is configured

    XMLWordPrintable

Details

    Description

      Summary

      If Xcode task is configured to build IPA, it will fail with error message '' is not a workspace file

      Steps to Reproduce

      1. Create Xcode task without IPA option
      2. Make sure that the build run successfully
      3. Enable the option "Build an .ipa for iOS Application Distribution" in Xcode task iOS development
      4. Run the build

      Expected Results

      It will finish successfully

      Actual Results

      The below exception is thrown in the build log file:

      simple	16-May-2018 23:27:50	Starting task 'Xcode' of type 'com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin:xcodeTaskType'
      command	16-May-2018 23:27:50	Beginning to execute external process for build 'bamboo - git - Default Job #12 (BAM-GIT-JOB1-12)'\n ... running command line: \n/usr/bin/xcodebuild clean build -sdk iphoneos11.1 -alltargets\n ... in: /Users/klfoong/Desktop/ServiceRocket/bamboo/atlassian-bamboo-6.5.0/home/xml-data/build-dir/BAM-GIT-JOB1
      ...
      build	16-May-2018 23:28:01	** BUILD SUCCEEDED **
      build	16-May-2018 23:28:01	
      command	16-May-2018 23:28:01	Beginning to execute external process for build 'bamboo - git - Default Job #12 (BAM-GIT-JOB1-12)'\n ... running command line: \n/usr/bin/xcrun -sdk iphoneos11.1 xcodebuild -workspace  -scheme  -sdk iphoneos archive -archivePath /Users/klfoong/test/ios.xcarchive\n ... in: /Users/klfoong/Desktop/ServiceRocket/bamboo/atlassian-bamboo-6.5.0/home/xml-data/build-dir/BAM-GIT-JOB1
      ...
      build	16-May-2018 23:28:01	Build settings from command line:
      build	16-May-2018 23:28:01	    SDKROOT = iphoneos11.1
      build	16-May-2018 23:28:01	
      error	16-May-2018 23:28:01	xcodebuild: error: '' is not a workspace file.
      simple	16-May-2018 23:28:01	Failing task since return code of [/usr/bin/xcrun -sdk iphoneos11.1 xcodebuild -workspace  -scheme  -sdk iphoneos archive -archivePath /Users/klfoong/test/ios.xcarchive] was 66 while expected 0
      

      Notes

      • The command run with "workspace" option even though it run successfully without that option previously
      • This iOS project is using xcodeproj file

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              klfoong Foong (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: