xcodebuild fails with xcodebuild: error: '' is not a workspace file.

I have a xcodebuild task that fails with the error: xcodebuild: error: '' is not a workspace file. But, the job does not contain a worskspace file, and neither does the project. I use a project file.

It seems that everything works just fine, and the part that fails shouldn't run at all, since i didn't enter a workspace file in configuration. Or am i missing something here?

The log (masked):

10-Oct-2017 11:26:34     Signing Identity:     "iPhone Developer: Build Server (**********)"
10-Oct-2017 11:26:34     Provisioning Profile: "iOS Team Provisioning Profile: ********"
10-Oct-2017 11:26:34                           (*************************************)
10-Oct-2017 11:26:34     
10-Oct-2017 11:26:34         /usr/bin/codesign --force --sign *************************************** --entitlements /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/iOSTestApp/build/iOSTestApp.build/Release-iphoneos/iOSTestApp.build/iOSTestApp.app.xcent --timestamp=none /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/build/iOSTestApp.app
10-Oct-2017 11:26:35     
10-Oct-2017 11:26:35     Validate /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/build/iOSTestApp.app
10-Oct-2017 11:26:35         cd /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/iOSTestApp
10-Oct-2017 11:26:35         export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
10-Oct-2017 11:26:35         export PRODUCT_TYPE=com.apple.product-type.application
10-Oct-2017 11:26:35         builtin-validationUtility /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/build/iOSTestApp.app -validate-for-store
10-Oct-2017 11:26:35     
10-Oct-2017 11:26:35     ** BUILD SUCCEEDED **
10-Oct-2017 11:26:35     
10-Oct-2017 11:26:35     User defaults from command line:
10-Oct-2017 11:26:35         IDEArchivePathOverride = /Volumes/Bamboo/bamboo-agent-home/xml-data/build-dir/TES-IOSTE-JOB1/build.xcarchive
10-Oct-2017 11:26:35     
10-Oct-2017 11:26:35     Build settings from command line:
10-Oct-2017 11:26:35         SDKROOT = iphoneos10.3
10-Oct-2017 11:26:35     
10-Oct-2017 11:26:35     xcodebuild: error: '' is not a workspace file.

We are using Bamboo 6.0.01

2 answers

0 vote

Hi Jonas,

  • What happens if you use double quotes around the space name?
  • Check what is the command ran in the build logs?

  • Does the same work from terminal in the same build working directory?

  • If there is a problem with the command (spacing for example), check the task configuration to make sure it is fixed.

Try the command with quotes and see if that spaces are causing this by chance.

Cheers,

Branden

0 vote

I am also facing same issue. can anybody help?
I added only project file path not workspace path, as I am not using workspace. but it is showing this "xcodebuild: error: '' is not a workspace file". error.
I guess it is still trying to pick workspace path which it shouldn't.
any help will be appreciated.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot