Nashrin Fathima
Nashrin Fathima

Reputation: 81

Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found

i'm created new project in react-native and i'm trying to build in xcode but it was coming fatal error

fatal error: module map file '/Users/gis00109/Library/Developer/Xcode/DerivedData/sam-capwmdorzbxfzphhezjlrwcbyxyp/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found

Upvotes: 5

Views: 5537

Answers (3)

Karthick
Karthick

Reputation: 1

After trying every solution on the internet, this worked for me.

cd ios && pod install && cd ..

then

npx react-native link

or

yarn react-native link

Upvotes: -1

shiraz27
shiraz27

Reputation: 2636

the problem could be that you opened up .xcodeproj instead of .xcworkspace .

Upvotes: 0

abdeali kanch wala
abdeali kanch wala

Reputation: 41

Steps to solve:

  • Go to Xcode -> click target -> build settings
  • Search for VALID_ARCHS
  • write "arm64 armv7 x86_64" (without quotes) in that
  • clean and rebuild

Upvotes: 2

Related Questions