question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xcode 11.4 build fatal error: module map file xxx/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found

See original GitHub issue

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

fatal error: module map file ‘/Users/miaohao/Library/Developer/Xcode/DerivedData/apex_baojia2-cdczyhhwbgshmtbdymitajpzamao/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap’ not found

React Native version:

Run react-native info in your terminal and copy the results here. System: OS: macOS 10.15.3 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 219.52 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.16.1 - /usr/local/bin/node Yarn: 1.22.0 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.8.4 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 24, 25, 26, 27, 28, 29 Build Tools: 26.0.2, 28.0.3 System Images: android-23 | Android TV Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 11.4/11E146 - /usr/bin/xcodebuild Languages: Python: 2.7.16 - /usr/local/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.0 => 0.62.0 npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

1.react-native init XXX 2.cd ios && pod install 3. xcode Product/build

Expected Results

Describe what you expected to happen.

Snack, code example, screenshot, or link to a repository:

Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve image image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:184
  • Comments:153 (6 by maintainers)

github_iconTop GitHub Comments

529reactions
arjndrcommented, Apr 5, 2020

I had this issue too, I’m not very familiar with XCode, but I opened the .xcodeworkspace file and then clicked build, which was successful!

432reactions
apostophercommented, Apr 4, 2020

I managed to resolve the issue in my app. I had a mismatch between the ios version in Xcode and Podfile.

Podfile

image

Xcode

image

I changed my Podfile to platform :ios, '9.0' and ran pod install again. That did the trick.

Read more comments on GitHub >

github_iconTop Results From Across the Web

module map file '/Users/hosein/Lib… | Apple Developer Forums
I face with some error in my new MacBook. I see this errors: 1- building for iOS Simulator, but linking in object file...
Read more >
fatal error: module map file YogaKit.modulemap not found
I have the project, target, and podfile all specifying iOS deployment target of 14.2. I am using Xcode V12.2. fatal error: module map...
Read more >
Error when building project : r/reactnative - Reddit
module map file '/Users/UserName/Library/Developer/Xcode/DerivedData ... /Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found.
Read more >
Did not work for me, I got <unknown>:0: error: module map file ...
... /Xcode/DerivedData/rn64ts-ehhwyfdrgnnoyjahfcxzjgzvomte/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found 1 error ...
Read more >
ios emulator build fails - RevenueCat Community
ios emulator build fails ... fatal error: module map file ... /PurchasesCoreSwift/PurchasesCoreSwift.modulemap' not found 1 error generated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found