OSX: Build fails if there is a space in the .xcodeproj name

Need to escape filenames on the building process

  • xcodebuild -project NNN Desktop.xcodeproj -scheme ‘NNN TV’ clean build test
    xcodebuild: error: Unknown build action ‘Desktop.xcodeproj’.
1 Like

Hi,

Could you please share the whole log of the step which fails?

±-----------------------------------------------------------------------------+
| (4) xcode-test-mac@1.0.6 |
±-----------------------------------------------------------------------------+
| id: xcode-test-mac |
| version: 1.0.6 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2017-02-20T10:04:36-08:00 |
±-----------------------------------------------------------------------------+
| |
WARN[10:04:36] step.dependencies is deprecated… Use step.deps instead.
INFO[10:04:36] * [OK] Step dependency (xcode) installed, available.
Configs:

  • workdir: /Users/vagrant/git

  • project_path: Con Desktop.xcodeproj

  • scheme: Con TV

  • is_clean_build: yes

  • generate_code_coverage_files: no

  • output_tool: xcpretty

  • xcodebuild_version: Xcode 8.2.1 (Build version 8C1002)

  • xcpretty_version: 0.2.4

==> Switching to working directory: /Users/vagrant/git

  • ‘[’ xcpretty == xcpretty ‘]’
  • set -o pipefail
  • xcodebuild -project Con Desktop.xcodeproj -scheme ‘Con TV’ clean build test
  • xcpretty
    xcodebuild: error: Unknown build action ‘Desktop.xcodeproj’.
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | xcode-test-mac@1.0.6 (exit code: 65) | 5.77 sec |
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: …s://github.com/bitrise-steplib/steps-xcode-test-mac/issues |
    | Source: https://github.com/bitrise-steplib/steps-xcode-test-mac |
    ±–±--------------------------------------------------------------±---------+

Thanks @convodev!

@godreikrisztian & @tamaspapik can you please schedule a fix for this?

Scheduled! :white_check_mark: Thanks @convodev & @viktorbenei!

2 Likes

The issue is now resolved, the new step version will be available within couple of minutes.:tada:
Thank you for the feedback @convodev! :ok_hand:

Edit:
Released, please make sure you are using the new 1.1.0 further more! :blush:
http://discuss.bitrise.io/t/xcode-test-mac-v1-1-0

1 Like