react-native: Xcode IOS run YogaKit.modulemap' not found

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 18 (1 by maintainers)

Most upvoted comments

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