react-native-community/react-native-template-typescript

Brand new react native v0.67.2 project produces build errors

loekTheDreamer opened this issue · 1 comments

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.

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