Authored by 于良

使用DEBUG宏加载不同的jsbundle review by yewanwan

@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 * `inet` value under `en0:`) and make sure your computer and iOS device are 30 * `inet` value under `en0:`) and make sure your computer and iOS device are
31 * on the same Wi-Fi network. 31 * on the same Wi-Fi network.
32 */ 32 */
33 - 33 +#if DEBUG
34 jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; 34 jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
35 35
36 /** 36 /**
@@ -40,8 +40,9 @@ @@ -40,8 +40,9 @@
40 * running the project on an actual device or running the project on the 40 * running the project on an actual device or running the project on the
41 * simulator in the "Release" build configuration. 41 * simulator in the "Release" build configuration.
42 */ 42 */
43 -  
44 -// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 43 +#else
  44 + jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  45 +#endif
45 46
46 RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 47 RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
47 moduleName:@"YH_Vendor" 48 moduleName:@"YH_Vendor"