我正在使用 React Native 为 Android 和 ios 开发移动应用程序。我在 Windows 机器上开发了应用程序并成功运行它。我有很多模块,一切都在 Android 上运行良好。
现在,我正在尝试在 macOS 上安装所有模块。我运行npm install
,然后尝试运行,npx pod-install
但出现此错误:
[!] Unable to find a specification for UMFileSystemInterface depended upon by EXAV
.
我认为这个问题可能是因为react-native-unimodules
我遵循了关于如何在 ios 上安装这个模块的文档,但这并没有帮助。知道如何解决这个问题吗?
这是我的 Podfile
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
require File.join(`node --print "require.resolve('react-native/package.json')"`, "../scripts/react_native_pods")
require File.join(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`, "../native_modules")
require File.join(`node --print "require.resolve('react-native-unimodules/package.json')"`, "../cocoapods")
platform :ios, '13.6'
target 'Capitalba' do
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'
use_unimodules!
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
# Uncomment to opt-in to using Flipper
#
# if !ENV['CI']
# use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1')
# post_install do |installer|
# flipper_post_install(installer)
# end
# end
end