Я работаю над реагированием нативного приложения без Expo.Я пытаюсь использовать пакет response-native-video.Также я запускаю проект в Xcode с cocoapods .
Вот мой файл pod:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'myprj' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# Pods for myprj
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport'
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'react-native-video', :path => '../node_modules/react-native-video'
target 'myprj-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'react-native-video', :path => '../node_modules/react-native-video'
end
target 'myprjTests' do
inherit! :search_paths
# Pods for testing
end
end
Теперь, когда я пытаюсь запустить проект, он дает следующую ошибку:
node_modules / реагировать-родной / React/CxxBridge/RCTCxxBridge.mm:37:9: фатальная ошибка: файл 'jsireact / JSIExecutor.h' не найден
Пожалуйста, предложите мне решение, так как я пытался выполнить поиск, но не смогнайти любое решение.
Пожалуйста, проверьте этот скриншот.
![enter image description here](https://i.stack.imgur.com/NIkfO.png)
Пожалуйста, найдите мой package.json
{
"name": "myprj",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"immutability-helper": "^3.0.0",
"prop-types": "^15.6.2",
"react": "16.6.3",
"react-native": "0.58.3",
"react-native-deprecated-custom-components": "^0.1.2",
"react-native-video": "^4.3.1"
},
"devDependencies": {
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.0.0",
"jest": "24.0.0",
"metro-react-native-babel-preset": "0.51.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
}