facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.83k stars 24.29k forks source link

Xcode IOS run YogaKit.modulemap' not found #37121

Open w1687021088 opened 1 year ago

w1687021088 commented 1 year ago

Description

/Users/qinque/Library/Developer/Xcode/DerivedData/otam-hgtpqpfwdvlloxhkrzdsjqyxdctg/Build/Intermediates.noindex/otam.build/Debug-iphonesimulator/otam.build/DerivedSources/otam_vers.c module map file '/Users/qinque/Library/Developer/Xcode/DerivedData/otam-hgtpqpfwdvlloxhkrzdsjqyxdctg/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found

When Xcode runs, it prompts an error

image image

React Native Version

0.70.4

Output of npx react-native info

info Fetching system and libraries information... System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Memory: 93.95 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm Watchman: 2023.04.24.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/qinque/.rvm/gems/ruby-2.7.5/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.1/14B47b - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.4 => 0.70.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

xxx. xcodeproj Xcode -> build

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

image

And I found that the Libraries file is empty

image
github-actions[bot] commented 1 year ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
Pranav-yadav commented 1 year ago

You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@w1687021088 as the bot suggested please verify on latest patch version(s) as well.

davitsargsyan92 commented 1 year ago

Does anyone has any update for this issue ?

chrismerino commented 1 year ago

Leaving a comment to get any update because I'm also facing this issue on Xcode 14.2 - RN 0.68.5

0xd669 commented 1 year ago

Same here

jinhale commented 1 year ago

I have this issue with a fresh install using the latest version 0.72 and version 0.71. I execute yarn, cd ios && pod install --repo-update, then clean, and build but it's always the same. In my existing project, which was fully functional before upgrading the development environment, has a similar error for Fire Base but the error will not budge.

jinhale commented 1 year ago

I'm able to run in a simulator using npx react-native run-ios but it never builds.

evn-seyednov commented 1 year ago

I'm able to run in a simulator using npx react-native run-ios but it never builds.

Same for me.

TerryMinn commented 1 year ago

i have same issue for that error

Sophearithz commented 1 year ago

i have same issue for that error with mac m1

fukemy commented 1 year ago

any solution?

neutrous commented 1 year ago

Try to do the followings to fix this problem:

romanmiftakhur commented 7 months ago

Try to do the followings to fix this problem:

  • Using XCode to open your workspace
  • Click Project navigator then choose your project
  • On the right panel, make sure Build Settings of Your Project and Target with the same settings of Excluded Architectures
  • For Pods project, also make sure your Build Settings with the same value as above
Screenshot 2023-10-18 at 20 43 59

I am following this step. still same issue for that error. any solution?

romanmiftakhur commented 7 months ago

Try to do the followings to fix this problem:

  • Using XCode to open your workspace
  • Click Project navigator then choose your project
  • On the right panel, make sure Build Settings of Your Project and Target with the same settings of Excluded Architectures
  • For Pods project, also make sure your Build Settings with the same value as above
Screenshot 2023-10-18 at 20 43 59

I have been following this step. still same the error, Any suggestions?

react-native-bot commented 1 month ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Vasault commented 1 month ago

this is the same issue i'm getting but with firebasecore