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***
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)
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.
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
we recently added support for macOS Ventura: [CPP-3987] - Jira. It is going to be released in the next SonarQube version 10.2 and will be available soon on SonarCloud.
Did you solve the issue? I still get the empty result:
# (C) SonarSource SA, 2014-2023, info@sonarsource.com
# All SONARSOURCE programs and content are copyright protected.
# SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.
#
# This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.
# It may not be used in connection with any other software.
# Any other use is prohibited by law and may be grounds for immediate termination of your License.
{
"version":"6.52",
"captures":[
]}
I’m going to close this thread, as way too many things could fall under the realm of “build wrapper not working as expected” and an empty output.
Feel free to create new threads, outlining specifically
What version of what products you’re using
What system you’re running the build-wrapper on
Have uploaded (or be ready to share in a private channel) your build wrapper output directory.