mos*_*sch 5 javascript ios react-native
在iPhone模拟器上一切正常.为iPhone构建应用程序时,我收到错误:
需要一个bundleURL来创建RCTRootView
在AppDelegate.m中,我取消注释以下行;
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
Run Code Online (Sandbox Code Playgroud)
并将prebuild main.jsbundle下载到项目根目录中的iOS文件夹:
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4117 次 |
| 最近记录: |