-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcode 11.4 build fatal error: module map file xxx/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found #28503
Comments
I'm facing the same issue. but only in the release mode. the debug build works fine.
|
@apostopher this matches what I observed in Circle CI when I verified our iOS tests on Xcode 11.4.0 - no issues at all on debug mode. |
Facing sporatically in debug as well |
I have this issue too. And it's not a mismatch between versions. |
I had this issue too, I'm not very familiar with XCode, but I opened the |
use .xcodeworkspace is ok |
not sure why the many thumbs up? is this working for people? The above problem happens also when running .xcodeworkspace in xcode. |
I am also facing the same issue. Not sure what to do from here. |
also the same issue and stuck here :( |
If I run my project from project workspace then this error deosn't show up. And whenever you are using pods. You should always run your project from workspace |
People who are saying this is caused by not using the workspace aren't really being helpful. Thats not the cause of this specific bug, most people who use Pods would know to use the workspace, not the project. |
XCode:11.4 |
I'm not 100% sure if the first line did the trick, or if it was just a terminal restart, but this worked for me:
restart terminal (important)
|
I've incurred in the same error, it doesn't work also with blank RN project.
|
Same issue. started from nowhere. Done nothing, except internal js logic change. |
If I can help you, I solved with a reboot. I mean, I did just a reboot of osx, opened the .xcworkspace file and it worked. |
thank you. I solved it by turning off this stupid icloud backup. First of all - its rly slows down everything, and second - its just start copying some files from my project, and i belive simply corrupt one of the files during the process. |
+1 :( |
In my case the problem was in the provisioning profile. I fixed it by checking "Automatically manage signing" in Xcode -> Signing & Capabilities, and Choosing a Team. |
still having issues to build my project through xcode 11..on screen error is YogaKit.modulemap not found...any assistance will be highly appreciated.. |
Finally, I found a fix |
I had the same problem after updating to the latest version of xcode. The problem solved itself by restarting the mac. |
|
My issue resolve by this:
Make sure you update the pod using |
Still facing this issue |
I solved this issue by adding 3 liner code in PodFile on my m1 macbook.
Full Example below
|
已收到,我会尽快回复的了!
|
|
已收到,我会尽快回复的了!
|
pod install try |
已收到,我会尽快回复的了!
|
The issue I was facing when I received this error was, I had opened the wrong file in Xcode. Instead of opening the The solution to this issue is to open the |
In my case M1, I have proven the suggestion above. If anyone can run via opening *.xcworkspace but cannot run via terminal app or terminal in vscode. You just re-open the terminal or vscode first and try to run again. Now it works without any errors. |
Does anyone have an idea how to debug this kind of issue? I tried many of the suggested soluions but I still have this error (several missing .modulemap files). It seems like the build is supposed to move this files by itself because the location is something that is not part of my folder structure (something like I really struggle understanding builds (and therefore its hard to figure out what is going on). Everything is a bit too opaque and the terminology is very complex (workspace, projet, target, scheme, configuration, pods, …). EDIT: I found the current issue, I had to add the following in my
|
This solved it for me. I had previously built from Xcode, which also launched the terminal. I reused that terminal instance and kept getting a wall of text when running |
ANY Solution ???Error: |
已收到,我会尽快回复的了!
|
Tried almost all the solutions from thread - nothing helped, Xcode kept showing the error. But for some reason was able to build app from Terminal by running |
you are a hero my friend. some heros does not wear capes. |
check if u have .xcode.env in your /ios folder .xcode.env
after created, re-open your project in xcode. |
I recently switched to using the m1/arm64 version of cocoapods and removed the "Run with Rosetta" in XCode. I forgot to remove "arm64" from the excluded architectures. |
bro,save my life ,i use m2/ mini, |
For whatever it's worth, I found that opening either the <project_name>.xcodeproj or the <project_name>.xcworkspace files in Xcode came up unbuildable. Either I had access to all of my project files, but ran into a series of "Module not found" messages or I had access to all of the Pods configuration information, but no way to build the app for testing or archiving. When I opened the directory in which all of those files were located, however, I had both the app build files as well as the pod configurations available within the navigation pane of Xcode and running the code successfully built and launched into either the simulator or archive. Maybe just my situation, but there you are. |
In my case I resolved by enabling the rossetta in xcode 14.3 link |
any solution for XCode 15? |
@macci10 |
I had this issue sporadically when trying to run I suspect there is an issue in the build process that results in module map files not being generated, possibly some race condition. Edit: also, restart your computer after removing and reinstalling, as some case removing and reinstalling does not work 🤷 |
use .xcodeworkspace is ok and sudo xcode-select --switch /Applications/Xcode.app restart terminal (important) cd ios && pod install |
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(R) Core(TM) 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
The text was updated successfully, but these errors were encountered: