运行 pod install 时出现 expo-modules-core 错误

问题描述 投票:0回答:1

错误是:

[!] 没有找到“”的 podspec node_modules/expo-modules-core/ ios

我使用的是sdk 41。我无法更新项目的sdk,因为它是必需的。

我的 Podfile 看起来像这样:

  require_relative '../node_modules/react-native/scripts/react_native_pods'
    require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
    require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
    source 'https://github.com/CocoaPods/Specs.git'
    
    platform :ios, '11.0'
    
    target 'myProject' do
    use_unimodules!
    config = use_native_modules!
    
    use_react_native!(:path => config["reactNativePath"])
    
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable these next few lines.
    use_flipper!({ 'Flipper' => '0.87.0', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
    post_integrate do |installer|
    begin
    expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    end
   end
 end

我尝试重新安装节点模块,删除 Pods 文件夹并再次重新安装。没有任何效果。

ios xcode react-native cocoapods podfile
1个回答
0
投票

您需要运行 npx install-expo-modules@latest 来解决此问题。 出现这个问题是因为没有安装expo模块

© www.soinside.com 2019 - 2024. All rights reserved.