I have been trying to build my react native project but getting error
React native version : .48.4
Xcode : 9.1
configure: WARNING: 'missing' script is too old or missing
checking for arm-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-apple-darwin-gcc... /opt/Xilinx/SDK/2017.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc
checking whether the C compiler works... no
configure: error: in `/node_modules/react-native/third-party/glog-0.3.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
You need to run the below command to squash the error
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
Note: Depending on your Xcode version installed, sometimes you have to add it to the path, for example sudo xcode-select -s /Applications/Xcode 12.0.app/Contents/Developer/
This solved that issue for me
rm -r ~/.rncache/
cd node_modules/react-native/third-party/glog-0.3.4/
./configure --host arm-apple-darwin
I had the same issue,
below steps worked for me,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With