You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed react-native-macos with npx react-native@latest init --template "react-native@^0.71.0"
I added support for macos to my project by doing cd mynewproject then npx react-native-macos-init. This created the macos directory.
I added support for Windows as well: npx react-native-windows-init --overwrite
I ran the project with: npx react-native run-macos
Expected Behavior
A native Mac app running my blank project.
Actual Behavior
Result: Error
/Users/me/Documents/mynewproject/node_modules/expo/ios/EXAppDefinesLoader.m:5:9: fatal error: 'ExpoModulesCore/ExpoModulesCore.h' file not found
#import <ExpoModulesCore/ExpoModulesCore.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Reproducible Demo
No response
Additional context
I tried to fix it using advice found online but all the advice was regarding the iOS platform, not MacOS. So none of it worked.
I tried to run pod install from the macos folder, no error.
I also tried to build with XCode with the same error.
The text was updated successfully, but these errors were encountered:
Maybe @tsapeta can comment more here, but React Native macOS (and Expo) doesn't currently support adding macOS to an expo-created iOS app. You would have to run react-native-macos-init on top of an app made with the RN CLI (AKA, redo your step 1)
Hey! Yeah, that's correct – we don't support adding macOS to expo-created projects yet. We're working on this though. Could you please open an issue in https://github.com/expo/expo repo? It's definitely not an issue in react-native-macos itself, so I think this one can be closed.
Environment
Steps to reproduce the bug
Following the steps in https://microsoft.github.io/react-native-windows/docs/rnm-getting-started
Expected Behavior
A native Mac app running my blank project.
Actual Behavior
Result: Error
/Users/me/Documents/mynewproject/node_modules/expo/ios/EXAppDefinesLoader.m:5:9: fatal error: 'ExpoModulesCore/ExpoModulesCore.h' file not found
#import <ExpoModulesCore/ExpoModulesCore.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Reproducible Demo
No response
Additional context
I tried to fix it using advice found online but all the advice was regarding the iOS platform, not MacOS. So none of it worked.
I tried to run pod install from the macos folder, no error.
I also tried to build with XCode with the same error.
The text was updated successfully, but these errors were encountered: