-
Notifications
You must be signed in to change notification settings - Fork 138
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
react-native-macos 0.74.1 fails on fresh project #2165
Comments
From what I have tested, when running |
Okay I think I've figured it out. There's an erroneous script The script: echo "Checking whether Codegen has run..."
rncorePath="$REACT_NATIVE_PATH/ReactCommon/react/renderer/components/rncore"
if [[ ! -d "$rncorePath" ]]; then
echo 'error: Codegen did not run properly in your project. Please reinstall cocoapods with `bundle exec pod install`.'
exit 1
fi
As a quick fix it's possible to just clear out the script and xcode will build the project just fine. But the actual proper fix is not clear to me yet. |
Thanks for the investigation @hsjoberg ! |
Closing this one. Seems to not be an issue anymore in [email protected] 💯 |
Environment
Steps to reproduce the bug
I tried making a fresh project through community cli, and adding react-native-macos to it through
react-native-macos-init
.However, building fails with the following error:
I tried both old and new arch.
Steps to reproduce:
npx @react-native-community/cli init rnmacos74 --version 0.74.5
cd rnmacos74
yarn add "[email protected]"
, workaround of Unable to setup using npx react-native-macos-init #2152, as described in Testing release 0.74.1: multiple errors when creating a new project #2164npx react-native-macos-init --version 0.74.1
macos/Podfile
>You can find reproducible project here: https://github.com/hsjoberg/rnmacos74
Running through cli (
npx react-native-macos run-macos --scheme rnmacos74-macOS --configuration Debug
) does unfortunately not give any more useful info from what I can tell. But I uploaded full log here: https://gist.github.com/hsjoberg/0145ebdf2fa5d7ab138c928222f41b09Expected Behavior
App should successfully build.
Actual Behavior
Getting error
Codegen did not run properly in your project. Please reinstall cocoapods with `bundle exec pod install`.
Reproducible Demo
https://github.com/hsjoberg/rnmacos74
Additional context
No response
The text was updated successfully, but these errors were encountered: