Home iOS Development ios – How to fix module map file ‘/***/Pods/Headers/Public/folly/RCT-Folly.modulemap’ not found

ios – How to fix module map file ‘/***/Pods/Headers/Public/folly/RCT-Folly.modulemap’ not found

0

[ad_1]

I have upgraded my RN version from 69.4 -> 70.5 after that change my ios builds are failed with this error:

fatal error: module map file '/Users/omerkocer/Akıllı_Karavan/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap' not found

in terminal error like this:

CompileC /Users/omerkocer/Akıllı_Karavan/ios/build/akilli_karavan_.build/Debug-iphonesimulator/akilli_karavan.build/Objects-normal/x86_64/akilli_karavan_vers.o /Users/omerkocer/Akıllı_Karavan/ios/build/akilli_karavan_.build/Debug-iphonesimulator/akilli_karavan.build/DerivedSources/akilli_karavan_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'akilli_karavan' from project 'akilli_karavan_')
(1 failure)

My Config:

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 86.78 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.11.0 - ~/.nvm/versions/node/v18.11.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.11.0/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.11.0/bin/npm
    Watchman: 2022.11.07.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/omerkocer/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9014738
    Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.5 => 0.70.5 
    react-native-macos: Not Found

My Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.0'
install! 'cocoapods', :deterministic_uuids => false

production = ENV["PRODUCTION"] == "1"

# React Native Maps dependencies
rn_maps_path="../node_modules/react-native-maps"
pod 'react-native-google-maps', :path => rn_maps_path


pod 'RNFS', :path => '../node_modules/react-native-fs'




target 'akilli_karavan' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :production => production,
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )
  
  target 'akilli_karavanTests' do
    inherit! :complete
    # Pods for testing
  end

  pre_install do |installer|
    installer.pod_targets.each do |pod|
      if pod.name.eql?('RNScreens')
        def pod.build_type
          Pod::BuildType.static_library
        end
      end
    end
  end

  post_install do |installer|
    react_native_post_install(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        # Disable arm64 builds for the simulator
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64',
        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
      end
    end
  end
end

I have tried ;

  • Delete Pods folder and run pod install.
  • Delete build folder.
  • Xcode -> File -> Workspace Settings -> Advanced -> Legacy

Why does this error occur and is there any suggestion to solve this issue?

[ad_2]