Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce SKIP_BUNDLING_METRO_IP to skip ip.txt generation (#31829)
Summary: ios debug archiving build will generate ip.txt that will leak metro server address for other people testing. moreover, it will slow down launch time for metro server availability to wrong address. this pr introduce `SKIP_BUNDLING_METRO_IP` to prevent ip.txt generation. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [iOS] [Changed] - introduce SKIP_BUNDLING_METRO_IP to skip ip.txt generation Pull Request resolved: #31829 Test Plan: ### Classic build will generate ip.txt ```sh xcodebuild -workspace RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -sdk iphoneos -destination 'generic/platform=iOS' find $HOME/Library/Developer/Xcode/DerivedData/RNTesterPods-* -name 'ip.txt' ``` this will find the ip.txt ### Specify `SKIP_BUNDLING_METRO_IP=1` will not generate ip.txt ```sh SKIP_BUNDLING_METRO_IP=1 xcodebuild -workspace RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -sdk iphoneos -destination 'generic/platform=iOS' find $HOME/Library/Developer/Xcode/DerivedData/RNTesterPods-* -name 'ip.txt' ``` this will NOT find the ip.txt Reviewed By: hramos Differential Revision: D40095785 Pulled By: hramos fbshipit-source-id: 0c913f078e683879e07e9ce3306e899d631206b2
- Loading branch information