浏览代码

[iOS] Don't bundle the React resources in Debug mode

It significantly speeds up debug builds, putting them on par with Android, where
we also don't bundle the React resources.
master
Saúl Ibarra Corretgé 7 年前
父节点
当前提交
8f75c2e279
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ios/sdk/sdk.xcodeproj/project.pbxproj

+ 1
- 1
ios/sdk/sdk.xcodeproj/project.pbxproj 查看文件

337
 			);
337
 			);
338
 			runOnlyForDeploymentPostprocessing = 0;
338
 			runOnlyForDeploymentPostprocessing = 0;
339
 			shellPath = /bin/sh;
339
 			shellPath = /bin/sh;
340
-			shellScript = "export NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh";
340
+			shellScript = "export NODE_BINARY=node\nif [[ \"$CONFIGURATION\" == *Debug* ]]; then\n    export SKIP_BUNDLING=1\nfi\n../../node_modules/react-native/scripts/react-native-xcode.sh";
341
 		};
341
 		};
342
 		26796D8589142D80C8AFDA51 /* [CP] Check Pods Manifest.lock */ = {
342
 		26796D8589142D80C8AFDA51 /* [CP] Check Pods Manifest.lock */ = {
343
 			isa = PBXShellScriptBuildPhase;
343
 			isa = PBXShellScriptBuildPhase;

正在加载...
取消
保存