Skip to content

Commit 5f0ef12

Browse files
franticfacebook-github-bot-5
authored andcommitted
Skip bundling for Simulator
Summary: Following up on the conversation in https://www.prod.facebook.com/groups/reactnativeoss/permalink/1516993445263951/ I currently don't see any good reason to create an offline bundle for simulator builds. Closes #5519 Reviewed By: svcscm Differential Revision: D2859751 Pulled By: mkonicek fb-gh-sync-id: f70481e447e258f5531de773729fc31d9ebec6f7
1 parent 7419a82 commit 5f0ef12

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packager/react-native-xcode.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
# This script is supposed to be invoked as part of Xcode build process
1111
# and relies on envoronment variables (including PWD) set by Xcode
1212

13+
# There is no point in creating an offline package for simulator builds
14+
# because the packager is supposed to be running during development anyways
15+
if [[ "$PLATFORM_NAME" = "iphonesimulator" ]]; then
16+
echo "Skipping bundling for Simulator platform"
17+
exit 0;
18+
fi
19+
1320
case "$CONFIGURATION" in
1421
Debug)
1522
DEV=true

0 commit comments

Comments
 (0)