[英]I have a problem when trying to run my react native app
as referenced in the react native docs, I am trying to run my react native app with the command npx react-native run-ios on terminal.正如 react native 文档中所引用的,我试图在终端上使用命令 npx react-native run-ios 运行我的 react native 应用程序。 However, I am getting this error:
但是,我收到此错误:
How do I fix it?我如何解决它? I already tried deleting the build file in Xcode.
我已经尝试删除 Xcode 中的构建文件。
It seems like you have executed the react-native link command.看起来您已经执行了 react-native link 命令。 From react-native 0.60.0, there is no need of linking the native dependencies manually.
从 react-native 0.60.0 开始,不需要手动链接原生依赖。 Unlink the node modules that are causing the respective errors as suggested by Joshua Obritsch and run pod install again.
按照 Joshua Obritsch 的建议取消链接导致相应错误的节点模块,然后再次运行 pod install。
You have manually linked libraries by doing react-native link but react-native 0.60 onwards linking is automatic.您通过执行 react-native link 手动链接了库,但是 react-native 0.60 以后的链接是自动的。 SO first do ,
所以首先做,
react-native unlink react-native-gesture-handler
react-native unlink react-native-reanimated
react-native unlink react-native-screens
Then after that try pod install
and it should be fine.然后在尝试
pod install
之后应该没问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.