xcode-build-server: Crash When Executing Command

I installed xcode-build-server via Homebrew:

brew install xcode-build-server

Then attempted to configure my project:

xcode-build-server config -project MyApp.xcodeproj -scheme MyApp

But encountered this error:

Traceback (most recent call last):
  File "/opt/homebrew/bin/xcode-build-server", line 114, in <module>
    main()
    ~~~~^^
  File "/opt/homebrew/bin/xcode-build-server", line 77, in main
    main(subcommand_argv())
    ~~~~^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/xcode-build-server/1.2.0/libexec/config/cmd.py", line 93, in main
    output = subprocess.check_output(f"xcodebuild -showBuildSettings -json -workspace '{workspace}' -scheme '{scheme}' 2>/dev/null", shell=True, universal_newlines=True)
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 472, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               **kwargs).stdout
               ^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'xcodebuild -showBuildSettings -json -workspace 'MyApp.xcodeproj/project.xcworkspace' -scheme 'MyApp' 2>/dev/null' returned non-zero exit status 1.

This is the first time I’ve encountered this issue. Any suggestions on how to resolve it?

Additional Context:

  • Xcode Version: [xcode 16.0]
  • macOS Version: [15.2 (24C101)]
  • I use anaconda python environment, python version is 3.13
  • My old computer use xcode-build-server 1.1.0, didn’t meet this problem

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

For reference it doesn’t upload anything, thanks! https://github.com/swiftlang/sourcekit-lsp/issues/2163

I’m not sure whether Apple will upload any information on its own initiative. I guess it won’t. If you have any doubts, you can ask Apple. @josh-arnold-1