android - react-native-ffmpeg:本机模块不能为空(ios)并且空不是对象(评估'RNFFmpegModule.enableLogEvents')(android)
问题描述
我有一个基本的世博项目,我已经弹出expokit
,然后继续运行expo install react-native-ffmpeg
。然后运行时,expo start
我Native 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
,仍然没有运气!
该错误无济于事。任何想法在哪里看?
解决方案
我找到了一张新收据,对我有用: https ://github.com/tanersener/react-native-ffmpeg/pull/137
需要将文件react-native-ffmpeg.podspec
从目录移动node-modules\react-native-ffmpeg
到ios
该模块的根目录。
推荐阅读
- javascript - 如何在另一个数组中找到数组的值然后相应地设置数据?
- azure - Azure 部署池代理安装 IIS 失败
- javascript - 在 Javascript 中计算垂直 3d 向量
- python - 试图解决一个与阵列相关的问题,即避免来自协同信号的障碍
- android - WorkManager 和通知第一次不起作用
- javascript - 通过Javascript从python烧瓶获取数据到html
- python-3.x - 关于使用请求登录网站的另一个问题
- arrays - 如果值匹配,则查找并重复单元格值
- html - Confluence 页面的背景颜色
- rest - 使用 JWT 进行身份验证:我是否应该始终检查用户是否存在?