How to fix the ``Cannot locate iphoneos'' error in MacOS

A quick guide on how to solve confusing React Native errors

When installing React Native to run the project on iOS, I ran into a problem.

I entered the projectiosFolder to runpod installFollow my instructions.

But when I ran the command, I received a long error message:

From this error i readerror: SDK "iphoneos" cannot be located.

Looks suspicious, right?

So I researched it and the reason to solve the problem is to run the command

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

Then runpod installIt works fine again!

Download mine for freeResponse Handbook


More native tutorials: