iOS build with some react code is failing at pod install because of glog

In my local computer the app builds correctly (npm install, pod install, app builds correctly); however using an automation server to build the app is failing. The reason is when running pod install, at exactly the glog instalation (0.3.5 version).

checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot 
checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
/Users/test/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24/missing: Unknown `--is-lightweight' option
Try `/Users/test/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/test/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24':
configure: error: C compiler cannot create executables

The computer has a i386 proc; 18.7.0 Darwin Kernel Version and RELEASE_X86_64 x86_64.

Makes no sense to me that other developers can build the app correctly but the server isn't. I think it could be an environment configuration issue.

Running the command:

sudo xcode-select --switch /Applications/Xcode.app

doesn't work.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum