๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

React Native

[ React Native ] ios ๋นŒ๋“œ ์˜ค๋ฅ˜ PhaseScriptExecution ํ•ด๊ฒฐ

echo $(brew --prefix nvm

์Šคํ„ฐ๋”” ๊ณผ์ œ๋ฅผ ์ž‘์—…ํ•˜๋ ค๊ณ  ์˜ค๋žœ๋งŒ์— react-native๋ฅผ ์ž‘์—…ํ•˜๊ฒŒ ๋๋Š”๋ฐ,

npx react-native run-ios ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ ios ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ๋นŒ๋“œํ•˜๋‹ค๊ฐ€ ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

 

** BUILD FAILED **


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

 

 

 

 

๊ตฌ๊ธ€๋ง์„ ํ†ตํ•ด ๋ธ”๋กœ๊ทธ์™€ stackoverflow๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด๋‹ˆ,

npm, nvm, yarn์„ ์ง€์› ๋‹ค๊ฐ€ ์ „์—ญ์œผ๋กœ ๋‹ค์‹œ ๊น”์•„๋ณด๋ผ๊ณ  ๋‚˜์™€์žˆ์–ด์„œ ํ•ด๋ดค๋Š”๋ฐ ์—ฌ์ „ํžˆ ์•ˆ๋๋‹ค.

 

๊ทธ๋ž˜์„œ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€   in target 'FBReactNativeSpec' from project 'Pods' 

๋ฉ˜ํŠธ๋ฅผ ๋ณด๊ณ  ios ํด๋”์˜ Podfile.lock ์„ ์ง€์šฐ๊ณ , 

 

 

ํ”„๋กœ์ ํŠธ ๋ฃจํŠธ ํด๋”์—์„œ 

cd ./ios
pod cache clean -all
pod install
cd ../
npx react-native run-ios

 

์œ„์™€ ๊ฐ™์ด ์ˆœ์„œ๋Œ€๋กœ ๋ช…๋ น์–ด๋ฅผ ์น˜๋‹ˆ ๋นŒ๋“œ๊ฐ€ ์ž˜ ๋๋‹ค. ๐Ÿ˜„

 

 

 

 

 

++ 22๋…„ 4์›” 3์ผ ์ถ”๊ฐ€

๋งŒ์•ฝ ์œ„์˜ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๊ฒฐ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด, Xcode์˜ DerivedData ๋ฅผ ๋ชจ๋‘ ์‚ญ์ œํ•˜๊ณ  ์žฌ์‹คํ–‰ ์‹œ์ผœ๋ณด์ž!

DerivedData ์‚ญ์ œ ๋ฐฉ๋ฒ• ํฌ์ŠคํŒ… ์ด๋™

 

 

 

 

 


 

++ 22๋…„ 5์›” 19์ผ ์ถ”๊ฐ€

 

 

ํšŒ์‚ฌ ์•„์ด๋งฅ์œผ๋กœ ์ƒˆ๋กœ์šด React-Native ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  

npx react-native run-ios

๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์ž ๋˜ ๋™์ผํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๊ณ 

์œ„์˜ ๋ฐฉ๋ฒ•์„ ์‹œ๋„ํ–ˆ์ง€๋งŒ ์ „-๋ถ€ ์‹คํŒจ ํ–ˆ๋‹ค...^_^

 

์ดˆ์‹ฌ์œผ๋กœ ๋Œ์•„๊ฐ€ ๋‹ค์‹œ ์˜ค๋ฅ˜๋ฅผ ์žก๊ธฐ์œ„ํ•ด ์„œ์น˜๋ฅผ ํ•ด์„œ ํ•ด๊ฒฐ์„ ํ–ˆ๋Š”๋ฐ,

๊ฒฐ๋ก ์€ ์œ„์—์„œ ๋‚ด๊ฐ€ ๊ฐœ์ธ ๋งฅ๋ถ์—์„œ ์‚ญ์ œํ–ˆ๋˜  nvm์ด ๋ฌธ์ œ์˜€๋‹ค.^_^ํ—ค...ํ—ค..

 

์ด๋ฒˆ ํ•ด๊ฒฐ ์ฐธ๊ณ  ๋งํฌ

 

1. nvm ์œ„์น˜ ํ™•์ธ

echo $(brew --prefix nvm)

 

 

2. nvm ์‚ญ์ œ

๋‚˜๋Š” nvm์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•„์„œ ๊ธฐ์กด์— ์„ค์น˜๋ผ์žˆ๋˜ nvm์„ uninstall ํ•ด์คฌ๋‹ค.

brew uninstall nvm

 

 

=> ์—ฌ๊ธฐ๊นŒ์ง€ ์ง„ํ–‰ํ–ˆ์ง€๋งŒ, ์—ฌ์ „ํžˆ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๊ณ  nvm์ด ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ์…ธ์— ๋ช…๋ น์–ด๊ฐ€ ์žˆ๋Š”์ง€ ํ™•์ธ ํ›„ ๋‚ด ์ปดํ“จํ„ฐ์˜ ๋ฃจํŠธ๋กœ ๊ฐ€์„œ

ls -al ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด nvm๊ณผ ๊ด€๋ จ๋œ ํŒŒ์ผ/ํด๋”๊ฐ€ ์žˆ๋Š”์ง€ ํ™•์ธํ–ˆ๋‹ค. 

 

ํ™•์ธํ•ด๋ณด๋‹ˆ ๋‚ด ๋ฃจํŠธ์— .nvm ํด๋”๊ฐ€ ๋‚จ์•„์žˆ์—ˆ๋‹ค.

rm -rf .nvm

๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋‚จ์•„์žˆ๋Š” nvm ๊ด€๋ จ ํด๋” ๋ฐ ํŒŒ์ผ๋“ค์„ ์‚ญ์ œํ•˜๊ณ  ๋‹ค์‹œ ์œ„์˜ ๋ฐฉ๋ฒ•์œผ๋กœ cache, DerivedData ๋“ค์„ ์‚ญ์ œํ•œ ๋’ค

์‹คํ–‰ํ•ด์คฌ๋”๋‹ˆ ํ•ด๊ฒฐ ๋๋‹ค..!!

 

 

 


 

++ 22๋…„ 5์›” 24์ผ ์ถ”๊ฐ€

 

์–ด์ œ๊นŒ์ง€๋งŒ ํ•ด๋„ ์ž˜ ์ž‘๋™ํ•˜๋˜ react-native ํ”„๋กœ์ ํŠธ๊ฐ€ ๋˜ ํ•˜๋ฃจ ์•„์นจ์— ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.^^

The following build commands failed:
        PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/ddual/Library/Developer/Xcode/DerivedData/myReactNative-bcspxgfprlcjcfgwpxwokrehenek/Build/Intermediates.noindex/myReactNative.build/Debug-iphonesimulatormyReactNative.build/Script-C38B50BA6285516D6DCD4F65.sh (in target 'myReactNative' from project 'myReactNative')
(1 failure)

 

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๊ธฐ์กด์— ์œ„์— ์˜ฌ๋ ธ๋˜ ๋ฐฉ๋ฒ•๊ณผ ๊ฐ™์•˜๋‹ค.

ํ„ฐ๋ฏธ๋„์—์„œ ์•„๋ž˜์™€ ๊ฐ™์ด ์ž…๋ ฅํ•ด์ค€๋‹ค. 

 

cd /Users/userName/Library/Developer/Xcode/DerivedData/
ls -al // ์„ ํ†ตํ•ด ๋ฆฌ์ŠคํŠธ๋ฅผ ๋ณด๊ณ  ์‚ญ์ œ๋ฅผ ํ•˜๊ฑฐ๋‚˜,
open . // ์„ ํ†ตํ•ด DerivedData ํด๋”๋ฅผ ์—ด์–ด์„œ ๋‚ด๋ถ€์— ์žˆ๋Š” ํด๋” ์ „์ฒด ์‚ญ์ œ ์ง„ํ–‰.

// ๋‹ค์‹œ react-native ํ”„๋กœ์ ํŠธ ํด๋”๋กœ ๋Œ์•„์™€์„œ
cd ./ios
pod cache clean -all
pod install
cd ../
npx react-native run-ios

 

์œ„์™€ ๊ฐ™์ด ์ง„ํ–‰ํ•ด์ฃผ๋‹ˆ ๋˜ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค...!!

์ด๊ฒŒ ๋„๋Œ€์ฒด ์™œ ์ž๊พธ ์ด๋Ÿฌ๋Š”๊ฑด์ง€ ํ•œ๋ฒˆ ๋‚ ์žก์•„์„œ ์ฐพ์•„๋ด์•ผ๊ฒ ๋‹ค ใ… ใ… !!!