Ios React本机从0.50.4升级到0.55.3,不提供此类文件或目录Yoga.c错误
我正在将react原生项目从0.50.4升级到o.55.3(最新版本)。在Ios React本机从0.50.4升级到0.55.3,不提供此类文件或目录Yoga.c错误,ios,xcode,react-native,yoga-x1,Ios,Xcode,React Native,Yoga X1,我正在将react原生项目从0.50.4升级到o.55.3(最新版本)。在npm安装后更新后我得到如下错误 No such file or directory: '{PATH}/node_modules/reactnative/ReactCommon/yoga/yoga/Yoga.c' 我检查了文件目录,发现使用0.52.0以上react本机版本的项目有不同的文件目录。请检查图片。(第一张是=0.52.0) 如何解决在最新react本机版本中找不到文件Yoga.c的问题 注意:我清理、重新安
npm安装后更新后
我得到如下错误
No such file or directory: '{PATH}/node_modules/reactnative/ReactCommon/yoga/yoga/Yoga.c'
我检查了文件目录,发现使用0.52.0以上react本机版本的项目有不同的文件目录。请检查图片。(第一张是=0.52.0)
如何解决在最新react本机版本中找不到文件Yoga.c的问题
注意:我清理、重新安装了npm模块,删除了IOS文件夹中的build in,并尝试。。。什么都没用
编辑
播客文件
# Uncomment the next line to define a global platform for your project
platform :ios, ‘9.0’
target 'ProjectName' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
#use_frameworks!
# Pods for ProjectName
pod 'Fabric'
pod 'Crashlytics'
pod 'RSKImageCropper'
pod 'QBImagePickerController'
pod 'FreshchatSDK'
pod 'Mixpanel'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'BatchedBridge'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
pod 'RNShare', :path => '../node_modules/react-native-share'
pod 'TextToSpeech', :path => '../node_modules/react-native-tts'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'react-native-mixpanel', :path => '../node_modules/react-native-mixpanel'
end
请更新你的pod文件,包括下面的行,请删除当前的yoga
pod规范。下面是供你参考的,包括你现有的依赖项
target 'Demo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for Demo
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
end
再次安装
pod
,清理构建,删除派生数据并从Xcode运行iOS代码。尝试清理DerivedData
?@G0dsquad,也这么做了,运气不好。你的iOS应用程序使用cocoapods吗?@PPL,是的,我正在使用cocoapods@Sagar你能发布播客文件内容吗?我在上面试过了,BatchedBridge在运行pod安装时导致错误。我删除了正确安装的BatchedBridge和POD,但在尝试清理时遇到“清理失败”消息。在我使用BatchedBridge删除“参数列表过长:递归标头扩展失败”错误之前。是否删除了派生数据?显示所有问题检查依赖项参数列表过长:递归标头扩展在{ProjectPath}失败/node_modules/react native youtube/../ios/Pods/react/node_modules/resolve/test/module_dir/zmodules/bbb。这就是我犯的错误。让我们一起来。