If you try to run
pod install or perform a similar task using the command line in macOS may you face a problem like this
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' ... configure: WARNING: 'missing' script is too old or missing configure: error: in `/Users/arryangga/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6': configure: error: C compiler cannot create executables See `config.log' for more details
To fix this issue is very simple, you can fix this using the command line, or by using the Xcode application itself.
- make sure Xcode has installed
- open Xcode
- open Preferences menu
- open Locations tab
- make sure “Command Line Tools” has an entry. If not, click on the dropdown and select one (preferably the latest version).
Using Command Line macOS
sudo xcode-select --switch /Applications/Xcode.app