Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the role of ios/build folder in React Native?

I'm troubleshooting a React Native app and one article suggested deleting the ios/build folder, but didn't explain why. Does anyone know, in as much detail as you can, what the role of this folder is, how it's created, and what the implications are of deleting it?

Thanks!

like image 355
gkeenley Avatar asked Mar 04 '23 09:03

gkeenley


1 Answers

what the role of this build folder

Actually it's the code compiled into native. when you compile your code, for example react-native run-ios , this command compile and build code for ios and then run it on IOS simulator. its generated after compiling project.

how it's created

When you run the app, the compiler will build this folder.

and what the implications are of deleting it?

Then the compiler will build the whole project from start as the build folder for IOS or ANDROID is missing which is needed to run the native app.

I hope this helps in your understanding.

like image 197
Jamil Avatar answered Mar 15 '23 12:03

Jamil