react-native 0.22.2版本问题

来源:

poooocket

2016-09-25

上个问题:react-native如何指定版本 0.22.2?

把 node_modules 里面的 react-native 和 react 删了

然后在这个项目里,重新 npm install react-native@0.22.2 react@0.14.8 --save


结果:

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

[utf-8-validate@1.2.1] scripts.install success, use 3s

[bufferutil@1.2.1] scripts.install: "node-gyp rebuild" at ./node_modules/.1.2.1@bufferutil

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o

  SOLINK_MODULE(target) Release/bufferutil.node

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

[bufferutil@1.2.1] scripts.install success, use 1s

[spawn-sync@1.0.15] scripts.postinstall: "node postinstall" at ./node_modules/.1.0.15@spawn-sync

[spawn-sync@1.0.15] scripts.postinstall success, use 92ms

[fsevents@1.0.14] scripts.install: "node-pre-gyp install --fallback-to-build" at ./node_modules/.1.0.14@fsevents

----------------------

react-native run-ios

模拟器上示例APP打不开

imoocApp/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1324:5: error:

      ignoring return value of function declared with warn_unused_result

      attribute [-Werror,-Wunused-result]

    SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);

这些错误不知道如何调试。


rninit init imoocApp --source react-native@0.22.2  创建项目,模拟器项目还是打不开,报上面的错误。


写回答

2回答

Scott

2016-09-25

先卸载重装 Nodejs 后,再来进行这些操作试试看

0
0

慕数据2986492

2016-10-10

我也遇到同样的问题了,请问你解决了吗?

0
1
poooocket
没有解决,我用的高版本,暂时还没发现不兼容的错误。
2016-10-28
共1条回复

贯穿全栈React Native开发App

全面掌握React Native技术,不止步前端开发,让你移动领域大放光彩

946 学习 · 385 问题

查看课程