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

React Native

(7)
[ ReactNative ] react-native-vector-icons ์…‹ํŒ…ํ•˜๊ธฐ. react native ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•  ๋•Œ ๋‚ด๊ฐ€ ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žˆ๋‹ค. ๋ฐ”๋กœ react-native-vector-icons ์ด๋‹ค. ๋‹ค์–‘ํ•œ ํฐํŠธ์˜ ์•„์ด์ฝ˜์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์–ด์„œ ์ž์ฃผ ์• ์šฉํ•˜๋Š”๋ฐ, ์˜ˆ์ „์—๋Š” ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ link ํ•ด์ฃผ๋ฉด ๊ธˆ๋ฐฉ ์‚ฌ์šฉํ–ˆ์ง€๋งŒ ์ตœ๊ทผ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” ios๋กœ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ๋Œ๋ฆฌ๊ณ  ์žˆ์—ˆ๋Š”๋ฐ, ์•„์ด์ฝ˜์„ ์‚ฌ์šฉํ•œ ๋ถ€๋ถ„์—์„œ ํ•ด๋‹น ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. unrecognized font family 'Feather' ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋ ค๋˜ ์•„์ด์ฝ˜์˜ font ๋ฅผ ์ธ์‹ํ•  ์ˆ˜ ์—†๋‹ค๋Š” ์˜ค๋ฅ˜์˜€๋‹ค. ํ .. ๊ทธ๋ž˜์„œ ๊ตฌ๊ธ€๋ง์„ ํ†ตํ•ด ๋ฐฉ๋ฒ•์„ ์ฐพ์•˜๋‹ค. ์ฐธ๊ณ  ์‚ฌ์ดํŠธ : https://aboutreact.com/react-native-vector-icons/ ์ „์ฒด ์•„์ด์ฝ˜ ํ™•์ธ : https://oblador.gith..
[ ReactNative / iOS ] iOS ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ๋””๋ฐ”์ด์Šค ๋ณ€๊ฒฝํ•˜๊ธฐ. React Native๋กœ iOS ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ํ”„๋กœ์ ํŠธ๋ฅผ ๋นŒ๋“œ๋ฅผ ํ•˜๋Š”๋ฐ, ๊ณ„์† ๋‚ด๊ฐ€ ์„ค์น˜ํ•˜์ง€ ์•Š์€ iOS ๋ฒ„์ „์˜ iPhone ํƒ€๊ฒŸ์ด ์žกํ˜”๋‹ค.ใ… ใ…  ๋‹ต๋‹ตํ•ด์„œ ์„œ์น˜๋ฅผ ํ•ด๋ณด๋‹ˆ ๊ณต์‹ ํŽ˜์ด์ง€์— ์นœ์ ˆํžˆ ๋‚˜์™€์žˆ๋‹ค! 1) ํ˜„์žฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ device ์ •๋ณด ํ™•์ธํ•˜๊ธฐ xcrun simctl list devices ๋ช…๋ น์–ด๋ฅผ ์น˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋‚ด๊ฐ€ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ iOS ๋ฒ„์ „๊ณผ ๋””๋ฐ”์ด์Šค ๋ชฉ๋ก์ด ๋‚˜์˜จ๋‹ค. 2) ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋””๋ฐ”์ด์Šค ์ค‘ ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๋””๋ฐ”์ด์Šค ๋ฐ iOS ๋ฒ„์ „ ์„ ํƒ. npx react-native run-ios --simulator="iPhone 13 (15.5)" ์ด๋ ‡๊ฒŒ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์ด๋ ‡๊ฒŒ ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๋””๋ฐ”์ด์Šค์˜ ์›ํ•˜๋Š” iOS ๋ฒ„์ „์œผ๋กœ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์„ ํƒ์ด ๊ฐ€๋Šฅํ•˜๋‹ค-!! ์ฐธ๊ณ  ์ž๋ฃŒ ) React Native ๊ณต์‹ ..
[ ReactNative / M1 ] Pod install ๊ด€๋ จ ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•. ๋‚˜์˜ ๋งฅ๋ถํ”„๋กœ(M1์นฉ)์—์„œ react native ( ios / macOS ) ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒˆ๋กœ ์ƒ์„ฑํ•˜๊ณ  ์ƒˆ๋กœ ์ƒ์„ฑํ•œ ํ”„๋กœ์ ํŠธ ํด๋”์˜ ios ํด๋”์—์„œ 'pod install' ์„ ์ง„ํ–‰ํ•ด ์ฃผ์—ˆ๋”๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์•ˆ๋‚ด๋Œ€๋กœ `pod install --repo-update` ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰์‹œ์ผฐ์ง€๋งŒ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์•˜๋‹ค...ใ… ใ… ... pod install ์ด ์ •์ƒ์ ์œผ๋กœ ์ฒ˜๋ฆฌ๋˜์ง€ ์•Š๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒ...๐Ÿ˜ญ Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65 React Native ๊ณต์‹ ํŽ˜์ด์ง€์˜ Guide์™€ stackOverflow๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•˜์˜€๋‹ค. 1. react native ํ”„๋กœ์ ํŠธ ํด๋”..
[ React Native ] React Native ์—์„œ Text ๊ธธ์ด ์กฐ์ ˆ ๋ฐ ์ค„๋ฐ”๊ฟˆ ํ•˜๊ธฐ. ์ถœ์ฒ˜ - React Native ๊ณต์‹ ํŽ˜์ด์ง€ Text ๋ฌธ์„œ React Native์—์„œ ํ…์ŠคํŠธ์˜ ์ค„ ๊ธธ์ด๋ฅผ flexible ํ•˜๊ฒŒ ๊ธธ์ด ์กฐ์ ˆ ๋ฐ ์ค„ ๋ฐ”๊ฟˆ์„ ํ•˜๊ณ  ์‹ถ์„ ๋•Œ๋Š” ์ปดํฌ๋„ŒํŠธ์˜ ์†์„ฑ ์ค‘numberOfLines ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค. ํ•œ๊ธ€์— ๋Œ€ํ•˜์—ฌ ํ›ˆ๋ฏผ์ •์Œ ํ•ด๋ก€๋ณธ]์€ ์„ธ์ข…์ด ์ง์ ‘ ์„œ๋ฌธ์„ ์“ฐ๊ณ  ์ •์ธ์ง€ ๊ฐ™์€ ์‹ ํ•˜๋“ค์—๊ฒŒ ๊ธ€์ž์— ๋Œ€ํ•œ ์„ค๋ช…์„ ์ ๊ฒŒ ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด ์ฑ…์ด 1940๋…„์— ์•ˆ๋™์—์„œ ๋ฐœ๊ฒฌ๋  ๋•Œ๊นŒ์ง€ ์šฐ๋ฆฌ๋Š” ํ•œ๊ธ€์˜ ์ฐฝ์ œ ์›๋ฆฌ์— ๋Œ€ํ•ด ์ „ํ˜€ ๋ชจ๋ฅด๊ณ  ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‹ค ์ด ์ฑ…์ด ๋ฐœ๊ฒฌ๋จ์œผ๋กœ ํ•ด์„œ ํ•œ๊ธ€์ด ์–ผ๋งˆ๋‚˜ ๊ณผํ•™์ ์ธ ์›๋ฆฌ๋กœ ๋งŒ๋“ค์–ด์กŒ๋Š”์ง€ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ต๋‹ˆ๋‹ค. ์ด ์ฑ…์ด ์šฐ๋ฆฌ์—๊ฒŒ ์ „ํ•ด์ง„ ๊ฒƒ์€ ์ „์ ์œผ๋กœ ์„ฑ๋ถ๋™์— ์žˆ๋Š” ๊ฐ„์†ก๋ฏธ์ˆ ๊ด€์„ ์„ธ์šด ์ „ํ˜•ํ•„ ์„ ์ƒ์˜ ๊ณต์ž…๋‹ˆ๋‹ค. ์„ ์ƒ์€ ์•„์ฃผ ๋น„์‹ผ ๊ฐ€๊ฒฉ์œผ๋กœ ์ด ์ฑ…์„ ์ƒ€๊ณ  6โˆ™25 ๋•Œ์—๋„ ์ด ์ฑ… ํ•œ ..
[ RN / expo ] expo error "EACCES: permission denied .expo/state.json." React Native Expo ํ”„๋กœ์ ํŠธ์—์„œ npm run start ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ๋”๋‹ˆ EACCES: permission denied .expo/state.json.2042385213 ์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.ใ… ใ…  ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ... Stack Overflow์— ๊ฐ™์€ ์˜ค๋ฅ˜์— ๋Œ€ํ•œ ๋‹ต๋ณ€์ด ๋‚˜์™€์žˆ์—ˆ๋‹ค. sudo rm -rf ~/.expo npm run start ๋‚ด๊ฐ€ ์˜ˆ์ƒํ•œ ์˜ค๋ฅ˜์˜ ์›์ธ์€ ๋‚ด๊ฐ€ sudo npm install --global expo-cli ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด์„œ expo-cli๋ฅผ global๋กœ ์„ค์น˜ํ•ด์ฃผ์—ˆ๋Š”๋ฐ, ๊ทธ ์ด์œ ๋กœ expo์‹คํ–‰์— ๊ถŒํ•œ ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์œผ๋กœ ์˜ˆ์ƒ๋๋‹ค. stackoverflow์— ๋‚˜์˜จ ๋‹ต๋ณ€์„ ์ฐธ๊ณ ํ•˜์—ฌ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ๋”๋‹ˆ, ์ง€๊ธˆ์€ expo๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰๋˜๊ณ  ์žˆ๋‹ค. ๐Ÿ˜„
[ 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/FBReact..
[ React Native ] Xcode "domain=com.apple.CoreSimulator.SimError, code=405" ์˜ค๋ฅ˜ React Native๋ฅผ ์ด์šฉํ•˜์—ฌ ์•ฑ๊ฐœ๋ฐœ ์Šคํ„ฐ๋””๋ฅผ ํ•˜๊ณ  ์žˆ๋˜ ์ค‘์— ์ง‘์—์„œ ๋‚ด ์•„์ด๋งฅ์œผ๋กœ ๋นŒ๋“œํ–ˆ์„ ๋•Œ๋Š” ๋ฐœ์ƒํ•˜์ง€ ์•Š์•˜๋Š”๋ฐ, ์ ์‹ฌ์‹œ๊ฐ„์— ํšŒ์‚ฌ์—์„œ ์•„์ด๋งฅ์œผ๋กœ ๋นŒ๋“œํ•˜๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์€ ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๋‹ค. Failed to launch the app on simulator, An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown ๋ฐ”๋กœ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ ๋‹ค๋“ค ๋น„์Šทํ•œ ์˜ค๋ฅ˜ ๋ฐœ์ƒ ๊ธ€์€ ๋งŽ์€๋ฐ, ํ•ด๊ฒฐ์— ๋Œ€ํ•œ ๊ธ€์ด ๋ช‡๊ฐœ ์—†์—ˆ๋‹ค....๐Ÿ˜ฅ ๊ทธ์ค‘์— ๋‚ด๊ฐ€ ํ•ด๊ฒฐํ•œ ๋ฐฉ๋ฒ•์€ ๋ฐ”๋กœ ์ด ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•œ xcode ์บ์‹œ ์‚ญ์ œ. 1. ๋งฅ์˜ ์™ผ์ชฝ ..