1.使用curl命令生成 main.jsbundle
我这里是放在reactnative文件夹下,我是觉得RN的东西放在一块目录清晰
$cd reactnative
$curl http://localhost:8081/index.ios.bundle -o main.jsbundle

目录中生成好的main.jsbundle文件

2.把生成的main.jsbundle导入的工程中

3.注释掉这一行 jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
取消注释这一行 [NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
