使用pod安装,可能会因为Podfile的路径指向错误或者没有路径指向因为报错。

报错截图如下:

React Native pod install报错 `Yoga (= 0.44.3.React)` required by `React/Core (0.44.3)`

这是因为在指定的路径没有寻找到相应的组件。此时就需要修改podfile文件中的路径,由于上方提示没有 Yoga ,那我们就指定Yoga的路径即可.

React Native pod install报错 `Yoga (= 0.44.3.React)` required by `React/Core (0.44.3)`

pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

再次pod install即可.

React Native pod install报错 `Yoga (= 0.44.3.React)` required by `React/Core (0.44.3)`

附上React Native踩坑总结:

参考博客: http://www.jianshu.com/p/b182722df7a5

相关文章:

  • 2021-06-10
  • 2022-12-23
  • 2021-08-07
  • 2021-12-03
  • 2021-06-13
  • 2021-11-24
  • 2021-11-07
  • 2022-02-02
猜你喜欢
  • 2021-07-09
  • 2021-12-15
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案