Automatically start react-native metro packager when “running / building” in Xcode











up vote
0
down vote

favorite












I recently switched to using react-native via CocoaPods:
https://facebook.github.io/react-native/docs/integration-with-existing-apps



Prior to this change whenever I ran / built my app in Xcode it automatically started metro packager, which was very convenient.



After the change this is no longer the case, hence I wanted to know if it is possible to somehow start packager again.



Packager can be started manually via following script, perhaps there is a way to add this in Xcode somehow? Also would I need to only run packager in Debug mode or Release as well?



./node_modules/.bin/react-native start --reset-cache









share|improve this question
























  • hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
    – AlainIb
    2 days ago










  • Thanks @AlainIb but issue there is different to one i'm experiencing.
    – Ilja
    yesterday















up vote
0
down vote

favorite












I recently switched to using react-native via CocoaPods:
https://facebook.github.io/react-native/docs/integration-with-existing-apps



Prior to this change whenever I ran / built my app in Xcode it automatically started metro packager, which was very convenient.



After the change this is no longer the case, hence I wanted to know if it is possible to somehow start packager again.



Packager can be started manually via following script, perhaps there is a way to add this in Xcode somehow? Also would I need to only run packager in Debug mode or Release as well?



./node_modules/.bin/react-native start --reset-cache









share|improve this question
























  • hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
    – AlainIb
    2 days ago










  • Thanks @AlainIb but issue there is different to one i'm experiencing.
    – Ilja
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I recently switched to using react-native via CocoaPods:
https://facebook.github.io/react-native/docs/integration-with-existing-apps



Prior to this change whenever I ran / built my app in Xcode it automatically started metro packager, which was very convenient.



After the change this is no longer the case, hence I wanted to know if it is possible to somehow start packager again.



Packager can be started manually via following script, perhaps there is a way to add this in Xcode somehow? Also would I need to only run packager in Debug mode or Release as well?



./node_modules/.bin/react-native start --reset-cache









share|improve this question















I recently switched to using react-native via CocoaPods:
https://facebook.github.io/react-native/docs/integration-with-existing-apps



Prior to this change whenever I ran / built my app in Xcode it automatically started metro packager, which was very convenient.



After the change this is no longer the case, hence I wanted to know if it is possible to somehow start packager again.



Packager can be started manually via following script, perhaps there is a way to add this in Xcode somehow? Also would I need to only run packager in Debug mode or Release as well?



./node_modules/.bin/react-native start --reset-cache






xcode react-native






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Cœur

16.9k9102139




16.9k9102139










asked 2 days ago









Ilja

9,00847141262




9,00847141262












  • hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
    – AlainIb
    2 days ago










  • Thanks @AlainIb but issue there is different to one i'm experiencing.
    – Ilja
    yesterday


















  • hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
    – AlainIb
    2 days ago










  • Thanks @AlainIb but issue there is different to one i'm experiencing.
    – Ilja
    yesterday
















hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
– AlainIb
2 days ago




hello. i get a problem with stuck metro bundler (but auto starting) with last version of Xcode 10. try this maybe stackoverflow.com/questions/53204259/…
– AlainIb
2 days ago












Thanks @AlainIb but issue there is different to one i'm experiencing.
– Ilja
yesterday




Thanks @AlainIb but issue there is different to one i'm experiencing.
– Ilja
yesterday

















active

oldest

votes











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359432%2fautomatically-start-react-native-metro-packager-when-running-building-in-xco%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359432%2fautomatically-start-react-native-metro-packager-when-running-building-in-xco%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

'app-layout' is not a known element: how to share Component with different Modules

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

SQL update select statement