Skip to content

Commit dd517fa

Browse files
committed
Skip creation of offline package even on real phone
Anything running in Debug should use the packager; no need to bundle. This saves a huge amount of time during development. The code being modified was originally introduced in 9ae3714 to speed up builds on the simulator, but the change can be applied to real devices, too.
1 parent 1d30ace commit dd517fa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

scripts/react-native-xcode.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@
1212

1313
case "$CONFIGURATION" in
1414
*Debug*)
15-
# Speed up build times by skipping the creation of the offline package for debug
16-
# builds on the simulator since the packager is supposed to be running anyways.
17-
if [[ "$PLATFORM_NAME" == *simulator ]]; then
18-
echo "Skipping bundling for Simulator platform"
19-
exit 0;
20-
fi
21-
22-
DEV=true
15+
# Speed up build times by skipping the creation of the offline package.
16+
echo "Skipping bundling for Debug (since the packager is supposed to be running)"
17+
exit 0;
2318
;;
2419
"")
2520
echo "$0 must be invoked by Xcode"

0 commit comments

Comments
 (0)