buid on iOS do not honor RCT_NO_LAUNCH_PACKAGER setup #23661
Labels
Bug
Platform: iOS
iOS applications.
Resolution: Locked
This issue was locked by the bot.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
🐛 Bug Report
Every time a build start for iOS, Xcode try to launch metro bundler. There is a flag to disable this behavior but is not honored
The script defined here [1] is using this condition
[ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ]
and that never will resolve to null (-z), I think the correct check is
[ \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" = \"+xxx\" ]
[1] https://github.com/facebook/react-native/blob/master/React/React.xcodeproj/project.pbxproj#L4005
To Reproduce
Under Build Settings add an User Defined variable like
RCT_NO_LAUNCH_PACKAGER=1
close all terminals. Start a build, when React building starts, the metro bundler script is launched.
Expected Behavior
No terminal launched with metro bundler.
Environment
The text was updated successfully, but these errors were encountered: