Build-wrapper-macosx-x86 causes build to fail

Hi,

When I use build wrapper to get sonar analysis, it fails the normally succeeding build command with failures like this:

The following build commands failed:
	CompileAssetCatalog $BUNDLE_PATH $XCASSETS_PATH
	ProcessInfoPlistFile $INFO_PLIST_PATH $INFO_PLIST_PATH
	CodeSign $BUNDLE_PATH
	CompileXIB $XIB_PATH
	CompileStoryboard $STORYBOARD_PATH
	CompileAssetCatalog $XCASSETS_PATH
	ProcessInfoPlistFile $INFO_PLIST_PATH $INFO_PLIST_PATH
(7 failures)

I removed actual paths for confidentiality.

I saw this JIRA issue: https://jira.sonarsource.com/browse/CPP-2056

However, redownloading build wrapper from sonarcloud.io and updating sonar-scanner using homebrew didn’t help. I still get same errors.

../../sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --version
build-wrapper, version 5.0 (macosx-x86)
Copyright (C) 2014-2017 SonarSource SA, info@sonarsource.com

Usage: ../../sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir <output directory> <build command>
sonar-scanner --version
INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.0.0.1744/libexec/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 4.0.0.1744
INFO: Java 12.0.1 Oracle Corporation (64-bit)
INFO: Mac OS X 10.14.5 x86_64

Xcode version: 10.2.1
macOS version: 10.14.5

This surprises me, as when I download the build wrapper from SonarCloud (https://sonarcloud.io/static/cpp/build-wrapper-macosx-x86.zip), I see the following when I give it a run:

./build-wrapper-macosx-x86 --version
Preformatted textbuild-wrapper, version 6.3 (macosx-x86)
Copyright (C) 2014-2019 SonarSource SA, info@sonarsource.com

I would not feel confident that when you’re executing the build wrapper, you’re executing the version you just downloaded

2 Likes