CFamily analysis blocked on macOS 14 – build-wrapper incompatible with Xcode 16.2

SonarQube Build-wrapper Issue on macOS 14.x (Objective-C iOS Project)

Versions in Use

  • SonarQube Server: 9.9.9.104369 (LTS)
  • SonarScanner: 6.2.1.4610
  • Java: 17.0.13 (64-bit, Homebrew)
  • OS: macOS 14.4.1 (Sonoma)
  • Xcode: 16.2
  • CFamily Plugin: 6.41.2.69583 (latest)
  • Swift Plugin: 4.8.0.5759

Goal

We are trying to scan an iOS project that contains Objective-C and Swift code.
Swift scanning works well, but the CFamily (Objective-C) analysis is blocked due to build-wrapper not being supported on macOS 14.x.

Current Problem

Running the build-wrapper-macosx-x86 tool results in immediate failure with:

“Cannot run program … Unsupported OS version”

This prevents us from analyzing any Objective-C code in our CI pipeline.

What We Tried

  • Verified plugin versions are up-to-date
  • Confirmed the Swift plugin works and analyzes .swift files successfully
  • Attempted fallback analysis (without wrapper) — but CFamily plugin strictly requires build-wrapper
  • Checked compatibility documentation and community threads — latest build-wrapper still unsupported on macOS 14

What We Need

We’d like guidance on:

  • When build-wrapper support for macOS 14 (Sonoma) will be available
  • Any official workaround (e.g., remote scanning via Linux runner, supported Docker image, etc.)
  • How to temporarily skip Objective-C while scanning Swift to avoid false negatives/errors

Thanks in advance!

Hey there.

  • There’s a workaround listed in CPP-4941, where we also track an official resolution of the issue
  • You can adjust the analysis scope to exclude Objective-C files
  • You’re using SonarQube v9.9, which is not the current LTA version of SonarQube (v2025.1). Upon upgrading, you can take advantage of C/C++ AutoConfig – eliminating the strict requirement of a compilation database.