Skip to content
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

[0.71] Debug-iphoneos/YogaKit/YogaKit.modulemap not found #35877

Open
tientaidev opened this issue Jan 18, 2023 · 14 comments
Open

[0.71] Debug-iphoneos/YogaKit/YogaKit.modulemap not found #35877

tientaidev opened this issue Jan 18, 2023 · 14 comments

Comments

@tientaidev
Copy link

Description

When reading React native guide to set up environment and try to run on my physical device connected by USB i get this error:

/Users/myname/Library/Developer/Xcode/DerivedData/workout-dpldhexrxtuscggmgtdlyzjyzzzs/Build/Intermediates.noindex/workout.build/Debug-iphoneos/workout.build/DerivedSources/workout_vers.c module map file '/Users/myname/Library/Developer/Xcode/DerivedData/workout-dpldhexrxtuscggmgtdlyzjyzzzs/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found

Version

0.71.0

Output of npx react-native info

System:
    OS: macOS 13.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 2.44 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.asdf/installs/nodejs/16.16.0/bin/node
    Yarn: 1.19.1 - ~/.asdf/shims/yarn
    npm: 8.11.0 - ~/.asdf/plugins/nodejs/shims/npm
    Watchman: 2022.11.14.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/myname/.asdf/shims/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: 2021.3 AI-213.7172.25.2113.9014738
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.0 => 0.71.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

After checking that I have ruby and node installed

node -v
ruby -v

I run

npx react-native init workout

After that, I open .xcworkspace and try to build and run.

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

It is run on my local machine.

image

@cortinico cortinico changed the title Debug-iphoneos/YogaKit/YogaKit.modulemap not found [0.71] Debug-iphoneos/YogaKit/YogaKit.modulemap not found Jan 18, 2023
@wiulma
Copy link

wiulma commented Feb 15, 2023

hi! same error here. is there any workaround? this is my react native info:
System: OS: macOS 13.2 CPU: (8) arm64 Apple M1 Memory: 92.88 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2023.01.23.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 28, 29, 30, 31, 32, 33 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0 System Images: android-29 | Google APIs ARM 64 v8a, android-29 | Google Play ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a Android NDK: 23.1.7779620 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 12.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.1 => 0.71.1 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found info React Native v0.71.3 is now available (your project is running on v0.71.1).
I also have a strage situation, because it works from the terminal, but it fails from Xcode. do you have any suggestions?
thanks

@ptabarestmrw
Copy link

Same error, I just created the app and without any changes, just the starter template I got this error
Yogakit.modulemap not found

@dukemai
Copy link

dukemai commented Mar 5, 2023

I got the same issue with 0.71.3 and xcode Version 14.2 (14C18), mac m1

@dukemai
Copy link

dukemai commented Mar 5, 2023

update: this solution #29605 (comment) actually helps me. I chose deployment targets of the libraries to the same version as deployment target of my app

@vinaciotm
Copy link

vinaciotm commented Mar 10, 2023

🔥 I spent one week to solve it. 🩸

  1. in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
  2. in your react native root project run cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
  3. close the new terminal that has opened
  4. open your react native root project in finder, and double click to open the YOUR_APP_NAME.xcworkspace or just open selecting this on xcode
  5. in xcode PRODUCT>BUILD

if still not working, try all steps again, but first add this on your Podfile:

# insert this after (post_install do |installer|) and before (react_native_post_install)
installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

😉 I hope this will work for your, thanks 🇧🇷

@bodfaj13
Copy link

🔥 I spent one week to solve it. 🩸

  1. in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
  2. in your react native root project run cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
  3. close the new terminal that has opened
  4. open your react native root project in finder, and double click to open the YOUR_APP_NAME.xcworkspace or just open selecting this on xcode
  5. in xcode PRODUCT>BUILD

if still not working, try all steps again, but first add this on your Podfile:

# insert this after (post_install do |installer|) and before (react_native_post_install)
installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

😉 I hope this will work for your, thanks 🇧🇷

awesome

@mekanics
Copy link

mekanics commented Jul 3, 2023

I'm using Fastlane to build, deploy, etc. my app and I had the same issue.

My mistake was that I used the project instead of the workspace in the build command.

# ios/Fastfile

        build_app(
-            project: 'ios/MyAwesomeApp.xcodeproj'.
+            workspace: 'ios/MyAwesomeApp.xcworkspace',
            scheme: 'MyAwesomeScheme', 
            configuration: 'Debug', 
            export_method: 'development'
            )

@RobYang203
Copy link

🔥 I spent one week to solve it. 🩸

  1. in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
  2. in your react native root project run cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
  3. close the new terminal that has opened
  4. open your react native root project in finder, and double click to open the YOUR_APP_NAME.xcworkspace or just open selecting this on xcode
  5. in xcode PRODUCT>BUILD

if still not working, try all steps again, but first add this on your Podfile:

# insert this after (post_install do |installer|) and before (react_native_post_install)
installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

😉 I hope this will work for your, thanks 🇧🇷

thanks , it's work!

@e3bmo3ty
Copy link

e3bmo3ty commented Nov 1, 2023

🔥 I spent one week to solve it. 🩸

  1. in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
  2. in your react native root project run cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
  3. close the new terminal that has opened
  4. open your react native root project in finder, and double click to open the YOUR_APP_NAME.xcworkspace or just open selecting this on xcode
  5. in xcode PRODUCT>BUILD

if still not working, try all steps again, but first add this on your Podfile:

# insert this after (post_install do |installer|) and before (react_native_post_install)
installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

😉 I hope this will work for your, thanks 🇧🇷

awesome

this is only solution works for me

@jplanaslnp
Copy link

e3bmo3ty

I am trying to do product > archive but still not working, I am trying to make the ipa file to deploy, can someone help me plis? I am trying for two weeks this problem.

@HaNguyenRN
Copy link

Are there any other solutions? I still get this error with react-native: 0.71.1/react: 18.2.0

@Wesleyomnion
Copy link

This worked for me, in xcode:
Product > Destination > Destination Architectures > Show Rossetta Destinations

Captura de Tela 2024-01-23 às 00 06 19

@romanmiftakhur
Copy link

any other solutions? I still get this error with react-native: 0.64.2 /react: 18.18.0

@hanwenbo
Copy link

no solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests