react-native会遇到的错误

1.

config.h file not found  提示这个错误 替换文件 boost_1_63_0

【链接】BoostC++Libraries
https://sourceforge.net/projects/boost/files/boost/1.63.0/

2.

出现UNpacking 什么的下载  glog-0.3.4文件 导入

http://download.csdn.net/detail/caowei880123/9565134

这两个的文件路径都在AwesomeProject/node_modules/react-native ....

3.
下边是解决 main.jsbundle文件不存在,后者报红

    1、进入项目目录

cd /Users/cjp/Desktop/DemoZC/ios

    2、打开终端:

npm start

    3、使用curl命令生成 main.jsbundle

curl http://localhost:8081/index.ios.bundle -o main.jsbundle

    4、jsCodeLocation修改访问:注释掉localhost的URL方式,通过main的bundle方式加载

// swift
let jsCodeLocation = NSBundle.mainBundle().URLForResource("main", withExtension: "jsbundle") //NSURL(string: "http://localhost:8081/index.ios.bundle?platform=ios&dev=true")

 

posted on 2017-06-30 09:24  我就是一种相逢  阅读(437)  评论(0编辑  收藏  举报

导航