AppDelegate打包设置


#ifdef DEBUG
  #if TARGET_IPHONE_SIMULATOR
    jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
  #else
    jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  #endif
#else
  jsCodeLocation = [CodePush bundleURL];
#endif