首页 > 解决方案 > react-native-ffmpeg:本机模块不能为空(ios)并且空不是对象(评估'RNFFmpegModule.enableLogEvents')(android)

问题描述

我有一个基本的世博项目,我已经弹出expokit,然后继续运行expo install react-native-ffmpeg。然后运行时,expo startNative module cannot be null在我的 iOS 设备和null is not an object (evaluating 'RNFFmpegModule.enableLogEvents').

之后,我重新阅读了react-native-ffmpeg文档并添加pod 'react-native-ffmpeg', :podspec => '../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec'到我的ios/Podfile和运行pod install的 . 仍然没有运气。

之后,我删除了node_modules文件夹和yarn.lock文件,重新运行yarn,进入ios目录,删除了Pods文件夹和Podfile.lock文件,然后重新运行pod install,仍然没有运气!

该错误无济于事。任何想法在哪里看?

标签: androidiosreact-nativeffmpeg

解决方案


我找到了一张新收据,对我有用: https ://github.com/tanersener/react-native-ffmpeg/pull/137

需要将文件react-native-ffmpeg.podspec从目录移动node-modules\react-native-ffmpegios该模块的根目录。


推荐阅读