Build wrapper is not working as expected, Objective C, XCode

Hi guys,
Please I need your help to figure out why the build wrapper tool is not working as expected when running the command to build an Ios - Objective C on a Mac (Intel x86 Architecture).

The build command alone is working fine.
xcodebuild clean build -workspace PagaloTodo.xcworkspace -Scheme PagaloTodo
*** BUILD SUCCESSFUL***

But when running with the build wrapper command:

build-wrapper-macos-x86 --out-dir bw-output xcodebuild clean build -workspace PagaloTodo.xcworkspace -Scheme PagaloTodo

Two files are created inside bw-output folder but the dump json file does not seem complete, also the command execution was too fast and that is unusual. I Attached the build wrapper logs and dump file
build-wrapper-dump.json (507 Bytes)
build-wrapper.log (3.8 KB)

Hey there.

Based on the logs, your xcodebuild command is returning a non-zero exit code.

Tue Dec 20 15:34:49 2022: returned with code: 1

Is the build behaving as expected (and succeeding) without the build wrapper in play?

Hi Colin,

Yes, the build command alone is working as expected.

Initially, I had used this command:
xcodebuild clean build -workspace PagaloTodo.xcworkspace -Scheme PagaloTodo
and the build is successful.

I had tried passing others configuration options as arch, sdk, BUILD_LIBRARIES_FOR_DISTRIBUTION where
also the build is successful but the build wrapper generated file is uncomplete.

Hi @Stalin_Vladimir_Gome ,

looking at your build-wrapper.log it seems that you are on macOS Ventura 13.1. Unfortunately, build-wrapper currently doesn’t support macOS 13, see the related ticket: [CPP-3987] - Jira.

You can use the JSON Compilation Database instead. To generate a Compilation Database:

  • if you are using CMake, set the CMAKE_EXPORT_COMPILE_COMMANDS option
  • if you are using Xcode, use xcpretty