npx react-native start && npx react-native run-ios 실행 시 다음 에러 발생!
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/momo/Library/Developer/Xcode/DerivedData/wellgrower-bxqwolewjvrivyflwigijbgplsxy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-2697D9DBF0DFD7814252A04DB8A5FA41.sh (in target 'FBReactNativeSpec' from project 'Pods')
...
PROJECT:Pods-\"
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION\=12D4e
export XCODE_VERSION_ACTUAL\=1240
export XCODE_VERSION_MAJOR\=1200
export XCODE_VERSION_MINOR\=1240
export XPCSERVICES_FOLDER_PATH\=/XPCServices
export YACC\=yacc
export arch\=undefined_arch
export variant\=normal
/bin/sh -c /Users/momo/Library/Developer/Xcode/DerivedData/wellgrower-bxqwolewjvrivyflwigijbgplsxy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-2697D9DBF0DFD7814252A04DB8A5FA41.sh
bash: /Users/momo/wellgrower/node_modules/react-native/scripts/generate-specs.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
...
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/momo/Library/Developer/Xcode/DerivedData/wellgrower-bxqwolewjvrivyflwigijbgplsxy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-2697D9DBF0DFD7814252A04DB8A5FA41.sh
(1 failure)
PhaseScriptExecution failed with a nonzero exit code에 나온 해결방법 중 다음의 명령어로 해결했다.
sudo gem install cocoapods --pre
pod update