Skip to content

Brand new react native v0.67.2 project produces build errors #250

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

Closed
loekTheDreamer opened this issue Feb 15, 2022 · 1 comment
Closed

Comments

@loekTheDreamer
Copy link

Expected results

App should open in ios simulator

Observed results

Build fails in terminal with error before the app is opened on the device

Logs

The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/doris/Library/Developer/Xcode/DerivedData/MyApp-dbyuhsmbemopkbfmujohxtmsgxgv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)

Steps to reproduce

  1. npx react-native init MyApp --template react-native-template-typescript
  2. comment out lines 26-29 in PodFile (because that produces a different error) then run pod install/ pod update again:
  # post_install do |installer|
  #   react_native_post_install(installer)
  #   __apply_Xcode_12_5_M1_post_install_workaround(installer)
  # end
  1. yarn ios

Extra Notes

I've scoured the internet for a solution and it seems everyone with a M1 chip set there nvm (nvm unalias default) and then magically there problem is solved.

@loekTheDreamer loekTheDreamer changed the title react native v0.67.2 does not work with intel mac Brand new react native v0.67.2 project produces build errors Feb 15, 2022
@loekTheDreamer
Copy link
Author

My folder structure was documents/royal protocol/react native/ and I had to remove all spaces in all parent folders to resolve this issue. thanks to https://stackoverflow.com/a/67289307/1524165

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

No branches or pull requests

1 participant