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.

YogaKit.modulemap not found when archiving with Xcode 13

See original GitHub issue

Description

  • Update an existing Project to React-Native 0.66.3
  • Running on iOS-Simulator (Simulate an iPhone 11 Pro Max)…
    • via the RN-cli -> works perfect👌
    • via Xcode 13.1 -> works perfect👌

Trying to create a Release via Xcode (archive for Any iOS Devices (arm64, armv7)) crashes in seconds with this error:

error: module map file '/Library/Developer/Xcode/DerivedData/RNApp-epyvuwhzrqjwdbfenwzxjehsdrpn/Build/Intermediates.noindex/ArchiveIntermediates/RNApp/BuildProductsPath/Release-iphoneos/YogaKit/YogaKit.modulemap' not found

Version

0.66.3

Output of react-native info

System: OS: macOS 11.6 CPU: (8) x64 Intel® Core™ i7-7920HQ CPU @ 3.10GHz Memory: 1.27 GB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.0 - ~/.nvm/versions/node/v16.4.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.4.0/bin/yarn npm: 7.19.0 - ~/.nvm/versions/node/v16.4.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - ~/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 16, 23, 24, 25, 26, 27, 28, 29, 30 Build Tools: 28.0.3, 29.0.0, 29.0.2 System Images: android-16 | Intel x86 Atom, android-24 | Intel x86 Atom_64, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.6953283 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild Languages: Java: 1.8.0_60 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.3 => 0.66.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

  • Run npx react-native init projectname
  • Open the xcodeproj file in xcode
  • Choose Any iOS Devices (arm64, armv7) as emulator
  • Select “Product” -> “Archive” from the Xcode-menu

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

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

36reactions
spokeencommented, Dec 18, 2021

Maybe u can open xxx.xcworkspace instead of xxx. xcodeproj

18reactions
tscharkecommented, Nov 26, 2021

This answer of @apostopher in this ticket has inspired me and I’ve found a solution.

In my Podfile I set/referenced platform :ios, '11.0' which does not correspond to the setting in Xcode. So I changed the Deployment Info in Xcode to the latest major-version (11.4) and it works 💪

Read more comments on GitHub >

github_iconTop Results From Across the Web

YogaKit.modulemap not found after running the IOS Simulator
Expected behavior: XCode runs the simulator. Actual Behavior: The Build fails and I get the described error message. I already tried to update ......
Read more >
module map file '/Users/hosein/Lib… | Apple Developer Forums
Hi I bought the new MacBook Air m1 and install Xcode 12 on that and I try to run my React Native project...
Read more >
YogaKit.modulemap not found after running the IOS Simulator
iOS : YogaKit. modulemap not found after running the IOS Simulator [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
YogaKit ModuleMap Missing : r/reactnative - Reddit
So idk what even happened, but for some reason, my project (0.62.2) started failing to build when trying to archive it into a...
Read more >
[Solved]-`YogaKit.modulemap not found` prevents iOS build
Related Query · Cordova build iOS error: archive not found at path 'path/to/myApp. · Flutter shared_preferences module not found - iOS Xcode build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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