美文网首页
RN错误集合

RN错误集合

作者: suys_2017 | 来源:发表于2017-07-12 13:54 被阅读14次

    1.错误

    null is not an object(evaluating 'internallnstance.getHostNode').

    原因:

    render函数里面使用了//进行注释代码

    2.错误

    1.PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images ……

    2. Command /bin/sh failed with exit code 1

    解决方案

    1. XCode选中项目 -> TARGETS->Build Phases-> “Bundle React Native code and images”

    2.勾选 “Run script only when installing” 

    3.Clean 项目,重新运行即可。

    相关文章

      网友评论

          本文标题:RN错误集合

          本文链接:https://www.haomeiwen.com/subject/kgrbhxtx.html