What is the role of ios/build folder in React Native? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceWhat is the most efficient way to deep clone an object in JavaScript?What is the !! (not not) operator in JavaScript?What is the JavaScript version of sleep()?What does “use strict” do in JavaScript, and what is the reasoning behind it?What is the difference between call and apply?What is JSONP, and why was it created?What is the explanation for these bizarre JavaScript behaviours mentioned in the 'Wat' talk for CodeMash 2012?Loop inside React JSXWhat is the difference between using constructor vs getInitialState in React / React Native?What is the difference between React Native and React?
How to say that you spent the night with someone, you were only sleeping and nothing else?
What are the performance impacts of 'functional' Rust?
Working around an AWS network ACL rule limit
Communication vs. Technical skills ,which is more relevant for today's QA engineer positions?
Fishing simulator
Active filter with series inductor and resistor - do these exist?
Array/tabular for long multiplication
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Estimated State payment too big --> money back; + 2018 Tax Reform
What do you call a plan that's an alternative plan in case your initial plan fails?
How does modal jazz use chord progressions?
Two different pronunciation of "понял"
Simulating Exploding Dice
How to market an anarchic city as a tourism spot to people living in civilized areas?
If I can make up priors, why can't I make up posteriors?
How to rotate it perfectly?
Stars Make Stars
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
Did the new image of black hole confirm the general theory of relativity?
When is phishing education going too far?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green
Writing Thesis: Copying from published papers
What is the largest species of polychaete?
What is the role of ios/build folder in React Native?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceWhat is the most efficient way to deep clone an object in JavaScript?What is the !! (not not) operator in JavaScript?What is the JavaScript version of sleep()?What does “use strict” do in JavaScript, and what is the reasoning behind it?What is the difference between call and apply?What is JSONP, and why was it created?What is the explanation for these bizarre JavaScript behaviours mentioned in the 'Wat' talk for CodeMash 2012?Loop inside React JSXWhat is the difference between using constructor vs getInitialState in React / React Native?What is the difference between React Native and React?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
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!
javascript reactjs react-native build
add a comment |
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!
javascript reactjs react-native build
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ranreact-native run-ios, it gave him an error, so he deleted the build folder and ranreact-native run-iosagain. If the build folder is the direct result ofreact-native run-ios, shouldn't he get the same behaviour both times?
– gkeenley
Mar 8 at 15:21
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35
add a comment |
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!
javascript reactjs react-native build
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!
javascript reactjs react-native build
javascript reactjs react-native build
asked Mar 8 at 15:01
gkeenleygkeenley
1369
1369
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ranreact-native run-ios, it gave him an error, so he deleted the build folder and ranreact-native run-iosagain. If the build folder is the direct result ofreact-native run-ios, shouldn't he get the same behaviour both times?
– gkeenley
Mar 8 at 15:21
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35
add a comment |
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ranreact-native run-ios, it gave him an error, so he deleted the build folder and ranreact-native run-iosagain. If the build folder is the direct result ofreact-native run-ios, shouldn't he get the same behaviour both times?
– gkeenley
Mar 8 at 15:21
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ran
react-native run-ios, it gave him an error, so he deleted the build folder and ran react-native run-ios again. If the build folder is the direct result of react-native run-ios, shouldn't he get the same behaviour both times?– gkeenley
Mar 8 at 15:21
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ran
react-native run-ios, it gave him an error, so he deleted the build folder and ran react-native run-ios again. If the build folder is the direct result of react-native run-ios, shouldn't he get the same behaviour both times?– gkeenley
Mar 8 at 15:21
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
ios/build folder is updated when the app is built. It contains several subfolders, each having its own use:
Build/Products
Stores final build artifacts that are installed on Simulator or device.
Build/Intermediates.noindex
Stores additional files used while building the app. These are cached to speed up subsequent builds. Removing it will slow down the next build.
Index
Xcode performs indexing of project source code and stores the index in this folder. Index is used to speed up Xcode operation like search, quick navigation, refactoring. Removing this will trigger indexing next time Xcode is opened. However, Xcode index doesn't really affect React Native developer experience since you normally don't use Xcode much while developing RN apps.
Logs
Stores logs collected while performing various tasks like building, testing, debugging etc.
ModuleCache
Stores precompiled module files. Modules allow to reduce compile time of Xcode apps. Removing this will slow down the next build.
To summarize, ios/build folder contains final installation app files, auxiliary files and precompiled modules, various logs and source code index. The main implication of removing the build folder is that the next build will be slower than usual.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065867%2fwhat-is-the-role-of-ios-build-folder-in-react-native%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
edited Mar 8 at 19:40
answered Mar 8 at 15:43
JamilJamil
4,41442024
4,41442024
add a comment |
add a comment |
ios/build folder is updated when the app is built. It contains several subfolders, each having its own use:
Build/Products
Stores final build artifacts that are installed on Simulator or device.
Build/Intermediates.noindex
Stores additional files used while building the app. These are cached to speed up subsequent builds. Removing it will slow down the next build.
Index
Xcode performs indexing of project source code and stores the index in this folder. Index is used to speed up Xcode operation like search, quick navigation, refactoring. Removing this will trigger indexing next time Xcode is opened. However, Xcode index doesn't really affect React Native developer experience since you normally don't use Xcode much while developing RN apps.
Logs
Stores logs collected while performing various tasks like building, testing, debugging etc.
ModuleCache
Stores precompiled module files. Modules allow to reduce compile time of Xcode apps. Removing this will slow down the next build.
To summarize, ios/build folder contains final installation app files, auxiliary files and precompiled modules, various logs and source code index. The main implication of removing the build folder is that the next build will be slower than usual.
add a comment |
ios/build folder is updated when the app is built. It contains several subfolders, each having its own use:
Build/Products
Stores final build artifacts that are installed on Simulator or device.
Build/Intermediates.noindex
Stores additional files used while building the app. These are cached to speed up subsequent builds. Removing it will slow down the next build.
Index
Xcode performs indexing of project source code and stores the index in this folder. Index is used to speed up Xcode operation like search, quick navigation, refactoring. Removing this will trigger indexing next time Xcode is opened. However, Xcode index doesn't really affect React Native developer experience since you normally don't use Xcode much while developing RN apps.
Logs
Stores logs collected while performing various tasks like building, testing, debugging etc.
ModuleCache
Stores precompiled module files. Modules allow to reduce compile time of Xcode apps. Removing this will slow down the next build.
To summarize, ios/build folder contains final installation app files, auxiliary files and precompiled modules, various logs and source code index. The main implication of removing the build folder is that the next build will be slower than usual.
add a comment |
ios/build folder is updated when the app is built. It contains several subfolders, each having its own use:
Build/Products
Stores final build artifacts that are installed on Simulator or device.
Build/Intermediates.noindex
Stores additional files used while building the app. These are cached to speed up subsequent builds. Removing it will slow down the next build.
Index
Xcode performs indexing of project source code and stores the index in this folder. Index is used to speed up Xcode operation like search, quick navigation, refactoring. Removing this will trigger indexing next time Xcode is opened. However, Xcode index doesn't really affect React Native developer experience since you normally don't use Xcode much while developing RN apps.
Logs
Stores logs collected while performing various tasks like building, testing, debugging etc.
ModuleCache
Stores precompiled module files. Modules allow to reduce compile time of Xcode apps. Removing this will slow down the next build.
To summarize, ios/build folder contains final installation app files, auxiliary files and precompiled modules, various logs and source code index. The main implication of removing the build folder is that the next build will be slower than usual.
ios/build folder is updated when the app is built. It contains several subfolders, each having its own use:
Build/Products
Stores final build artifacts that are installed on Simulator or device.
Build/Intermediates.noindex
Stores additional files used while building the app. These are cached to speed up subsequent builds. Removing it will slow down the next build.
Index
Xcode performs indexing of project source code and stores the index in this folder. Index is used to speed up Xcode operation like search, quick navigation, refactoring. Removing this will trigger indexing next time Xcode is opened. However, Xcode index doesn't really affect React Native developer experience since you normally don't use Xcode much while developing RN apps.
Logs
Stores logs collected while performing various tasks like building, testing, debugging etc.
ModuleCache
Stores precompiled module files. Modules allow to reduce compile time of Xcode apps. Removing this will slow down the next build.
To summarize, ios/build folder contains final installation app files, auxiliary files and precompiled modules, various logs and source code index. The main implication of removing the build folder is that the next build will be slower than usual.
answered Mar 8 at 20:57
abadalyanabadalyan
845613
845613
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065867%2fwhat-is-the-role-of-ios-build-folder-in-react-native%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Actually it's the code compiled into native. when you compile your code for example react-native run-ios , this command generate the compile and build code for ios and then run it on IOS simulator. its generated after compiling project.
– Jamil
Mar 8 at 15:08
@Jamil Thank you!
– gkeenley
Mar 8 at 15:19
@Jamil in the article I read (andrewcbancroft.com/2017/04/22/…) it was saying that when the author ran
react-native run-ios, it gave him an error, so he deleted the build folder and ranreact-native run-iosagain. If the build folder is the direct result ofreact-native run-ios, shouldn't he get the same behaviour both times?– gkeenley
Mar 8 at 15:21
Actually according to my understanding, when we run react-native run-ios, this will build the new changes only, while the code that was build and not changed remain the same. like if we rebuild the project form the xcode, this will regenerate the whole code regardless of the new and old code changes. its like replacing the build folder. similarly if we just Build from xcode, the new code will be build only.
– Jamil
Mar 8 at 15:32
So the owner of the blog kinda Rebuilt the code manually by deleting the build folder, so when he react-native run-ios, the compiler will look that no build folder found, and will rebuild from the start.
– Jamil
Mar 8 at 15:35