-
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
yogakit/yogakit.modulemap' not found React Native #29605
Comments
Xcode 12, + 1 |
Maybe u can open xxx.xcworkspace instead of xxx. xcodeproj |
Having the same issue. working with .xcworkspace there is no issue on real device, release scheme and archive. This issue only persist on debug run simulators |
|
I had the same issue when I upgraded to Xcode 12. I just deleted |
Quick update downgrading xcode from 12 to 11.7 did the trick. Seems releated with Xcode for me. |
I did everything I mean downgraded Xcode to 11.7, deleted podfile.lock and reinstall it. can't even run on a real device. |
I did suggestions for removing Xcode before installing 11.7 from here https://stackoverflow.com/a/53575585 |
This problem might be related to the fact that Xcode 12 is building universal apps which builds the core for more architectures. I did not figure out yet how to run any other Schema apart from "Debug". To run Debug in "Build Settings" -> "Excluded Architectures" I've added "arm64", however since "Build Active Architecture Only" is set to "yes" for "Debug" and "no" for all the other schemas when I try to build for any other schemas my build fails with: yogakit/yogakit.modulemap not found React Native. |
Already tried, same results. Build Failed. |
This was the difference maker for me. Plus downgraded version. |
Did anyone solve this? I still cannot run on simulator devices but it works fine on the real one. However, real devices do not show my images as well as icons |
I am having the same issue when trying to build for a production release |
xcode 12, react-native 0.63.2 Solved issue by change ios target to 11.0 in |
Nah still not working with me. I tried all of the above solutions and nothing works |
I'm currently on Xcode 12.2 beta and there you can just build it out of the box. Had issues too with Xcode 12 from AppStore. If you have a Apple Development Account, I would recommend to download Xcode 12.2 beta until its free for public access, otherwise you should use Xcode 11 |
This works for me 👍 |
Do check IPHONEOS_DEPLOYMENT_TARGET should be 11.0 |
Neither downgrading Xcode to 11.7 nor upgrading deployment target to 11.0 is a valid solution. Same for arm64 exclusion. These are just hacks which will most likely pop up at some time in a different place. When I start a new RN (bare) project everything works fine with Xcode 12 and deployment target 10.0 - which is actually suggested in RN diff. Unfortunately I am stuck here after upgrading RN from 61.5 to 63.3. Any other suggestions are welcomed. Edit: I have always been using |
|
Open In my every project this worked. |
but react-native upgrade helper's Podfile contains [platform :ios, '10.0'] |
Most likely it worked for you because you had different versions in your Podfile and your project settings. However, this general issue is not related to iOS 11 as a deployment target. As @kofsiwon mentioned, official docs contain iOS 10 as minimum target. |
Let me show you. |
For projects that use pods ( which it did for me because I'm using RN63 ) I found that I had to set the version of To set
and then run |
None of them work |
cd ios |
Turns out mine was a version mismatch between podfile and xcode. https://stackoverflow.com/a/66788848/1834127 |
Just run |
|
"react-native": "0.64.0" in Info.plist change armv7 to armv64
|
TLDR: I removed all references to YogaKit.modulemap from build settings, but left all references to Yoga.modulemap in place. Okay, I've had this problem since upgrading to .63/.64. This problem seems to have multiple issues, but I've not seen the solution that worked for me (I tried all listed here). However, @feuzeu ranted about the difference between Yoga.modulemap and YogaKit.modulemap, and that got me searching. Old builds did have a YogaKit folder under the DerivedData/.../Build/Products/ folder. Newer builds did not. A brief search through the build settings revealed that YogaKit was only mentioned in
My suspicion is YogaKit was renamed/replaced/migrated/whatever to simply Yoga when upgrading. It seems build settings were upgraded in all places except OTHER_SWIFT_FLAGS. Hope this helps anyone else having this problem. |
I've opened the project with |
I'm using m1 macbook air. |
IF YOU'RE ON M1 CHIP ONLY
|
Described solution will work 100% on Apple silicon and while running Xcode without rosetta. Please try necessary steps only but if still not work than Please try everything including necessary and unnecessary steps. 1 - Not important(Package.json)
2 - necessary
OR
3 - Add 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. |
Thank you @rf1804 it worked for me! Solution: |
For those coming to this issue trying to get react-native to run on Apple Silicon (M1) hardware, you may be interested in the steps I took to get this to work: https://github.com/aiba/react-native-m1/blob/main/README.md |
This actually helped me after upgrading to 0.64.1 |
Did you downgrade Xcode, React Native, or something else? |
Can you give more information? Are you just searching for "YogaKit.modulemap" then commenting out every line that matches? I'm not sure what command takes |
I had this happen when I renamed my project...basically the scheme was still using the old one...I think xcode stores that outside the project so I had to create a new scheme with the same name I renamed to and then it worked. I also used the workspace. I was able to find the exact error in react native by running the xcodebuild command manually. |
Using workspace works for me, however I cannot run the project by running |
I need to get a build from xcproj facing this issue when Product -> Archieve |
having the same issue on NOT m1 macbook on react native 0.65. This is my podfile post install
|
#29605 (comment) - This worked for me. |
This works. As stated in the docs, if you're using Cocoa pods, .xcworkspace should be used. |
|
Description
I create a new app using react native. When I try to run the app within an iOS emulator using Xcode I get the following error and the app doesn't run.
fatal error: module map file '/Users/rebekah/Library/Developer/Xcode/DerivedData/example-feduelzeswwgfqdrghxcxxfxavuz/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found
I have tried to google this but have been unable to find a way to fix it, is there any way this can be fixed?
React Native version:
System:
OS: macOS 10.15.6
CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
Memory: 23.01 MB / 4.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.7.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 29
Build Tools: 29.0.2
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.6/11E708 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_45 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found
The text was updated successfully, but these errors were encountered: