[SOLVED] XCode error ‘YogaKit.modulemap’ not found

Issue

This Content is from Stack Overflow. Question asked by Hamza Furkan Atmaca

i have an error when i try build my project.

fatalerror: module map file ‘/Users/user/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap’ not found

what can i do? thanks.



Solution

Please try necessary steps only but if still not work than Please try everything including necessary and unnecessary steps.

1 – Not important(Package.json)

"dependencies": {
 "react": "17.0.1",
 "react-native": "0.64.2"
}

2 – necessary

  use_flipper!()
  post_install do |installer|
    react_native_post_install(installer)
        installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] =  "arm64"
        end
  end

OR

 use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
      installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
            config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
          end
      end
  end

3 – Add arm64 under Architectures->Excluded Architectures

4 – Add a swift file under your project, can be empty, can be BridgingFile.swift(nothing special in it), this will trigger a bridging header. Wallah, here you go.

enter image description here

ref : https://github.com/facebook/react-native/issues/29605#issuecomment-861783673


This Question was asked in StackOverflow by hamzafurkanatmaca and Answered by Iva It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?