Closed Lucianovici closed 2 years ago
I am using the latest pio
and native
.
➜ calculator git:(develop) pio --version
PlatformIO Core, version 5.0.4
➜ calculator git:(develop) pio platform install "native"
Platform Manager: native @ 1.1.3 is already installed
The platform 'native' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Are you using ar
and ranlib
from Apple as well?
I had GNU versions of these tools, which caused the same problem. See also https://community.platformio.org/t/native-desktop-unit-testing-on-macos/20416
Making sure that the Apple versions of ar
and ranlib
are used, and then
rm -rf .pio/build
pio test
helped in my case.
Making sure that the Apple versions of ar and ranlib are used?
how do we make sure it uses ar
instead of gcc
? Where can we configure that?
Please upgrade to the latest PIO Core via pio upgrade --dev
. Should be fixed.
FYI, i'm on PlatformIO Core, version 6.1.3
on MacOS and also ran into this, only after changing PATH
to use /usr/bin/ar
and/usr/bin/ranlib
does the error go away
Hi,
I am trying the official example https://github.com/platformio/platformio-examples/tree/develop/unit-testing/calculator
I'm using macOS Catalina 10.15.7, and my gcc version is:
Any suggestion is more than welcome. Thank you!