React,React-Native

** BUILD FAILED ** always when try to run project with version 0.66.0. All works fine when I run with lower versions of react native.

슬/도/아/밤/ 2022. 1. 17. 20:19
반응형
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'boost-for-react-native' from project 'Pods')

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/anuj/Library/Developer/Xcode/DerivedData/MyRNAnimations-gfhmqolshmhpmzhbhqbfeaqbupjz/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-0A79C5CBE8A2224B8CC70E5E27C587FC.sh
(1 failure)

info Run CLI with --verbose flag for more details.

 

xcode 를 Version 13.2.1 (13C100)로 기본적인 yarn ios가 되지 않는다. 

정말많이 ./ios/Pods를 지욱 재설치를 해도 안되던중 해봤던 방법을 적어본다.

// 지우고

yarn.lock 
package-lock.json, 
node_modules & Pods

// 실행
npm uninstall -g react-native-cli




    
    "cd ./ios && rm -rf /Pods && pod install && cd ..",
    // tangopick_app 프로젝트명
    "cd ./ios && pod deintegrate tangopick_app.xcodeproj && pod install",
    
    
    // 시뮬레이터실행을
    npx react-native run-ios

참고사이트

https://github.com/facebook/react-native/issues/31259 

 

iOS Build Error with react-native version - 0.64.0 · Issue #31259 · facebook/react-native

Description ** BUILD FAILED ** always when try to run project with version 0.64.0. All works fine when I run with lower versions of react native. React Native version: System: OS: macOS 11.0.1 CPU:...

github.com

 

반응형