c++xcodegccg++xcodebuild

ld: warning: ignoring duplicate libraries: '-lgcc' after the recent update of Xcodebuild tools


Recently, I upgraded to Xcode 15, and with that the update of the xcodebuild tools. However, suddenly, my standalone C++ applications are not able to use the g++-13 compiler for some reason? Anyone knows what might work, I don't want to downgrade to Xcode 14.


Solution

  • From Apple's internal employees, this is the fault of Homebrew, you can either wait for Homebrew to fix it or try other ways to install GNU tools.