找不到Yoga/yoga.h文件RCTConvert.h [英] yoga/yoga.h file not found RCTConvert.h
问题描述
每次安装Pod时,我都会不断收到此错误消息.我放入使用框架",然后弹出此错误.当我卸下吊舱安装程序时,我的应用程序即可加载.有人可以帮我解决什么问题吗?
I keep getting this error message whenever I do a pod install. I put 'use frameworks' and then this error pops up. When i remove the pod install my app is able to load. Can someone please assist me with what is wrong?
谢谢你!
推荐答案
1.第一件事,如果您在项目中使用Pod,则应打开ios/Project_Name.xcworkspace而不是Xcode中的ios/Project_Name.xcodeproj
1.First thing if you are using pods in your project you should open ios/Project_Name.xcworkspace instead of ios/Project_Name.xcodeproj in Xcode
2.如果您甚至在执行上述操作时也遇到错误,请尝试将以下内容添加到您的pod文件中
2.If you get error even did the above just try to add following into your pod file
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
并运行"pod安装"
and run "pod install"
这篇关于找不到Yoga/yoga.h文件RCTConvert.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!