RN PhaseScriptExecution failed with a nonzero exit code

Maliethy·2021년 4월 5일
0

React-Native Error

목록 보기
12/15

1.issue

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)

2. solution

PhaseScriptExecution failed with a nonzero exit code에 나온 해결방법 중 다음의 명령어로 해결했다.

sudo gem install cocoapods --pre
pod update

profile
바꿀 수 있는 것에 주목하자

0개의 댓글