微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

React Native 初始项目不适用于 IOS

如何解决React Native 初始项目不适用于 IOS

我使用命令 npx react-native init MyApp --template react-native-template-typescript 创建了一个新项目。

"dependencies": { "react": "17.0.1","react-native": "0.64.0" }

当我运行 npx react-native run-ios 时,它给了我以下错误

enter image description here

我尝试用 use_flipper!() 替换 use_flipper!({ 'Flipper-Folly' => '2.3.0' })Podfile 中,然后删除 ios/Podsios/Podfile.lock

enter image description here

当我运行 pod install 时,它再次抛出这样的错误

enter image description here

解决方法

将脚蹼更新为 0.49 ,应该就可以了

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。