How to fix the `iphoneos cannot be located` error in macOS

PHOTO EMBED

Thu Feb 17 2022 04:21:17 GMT+0000 (UTC)

Saved by @sb #react #ios

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

'pod install' doesn't work for some reason, but this code resolves problem.

https://flaviocopes.com/react-native-fix-iphoneos-cannot-be-located/