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

Flutter

[ Flutter / macOS ] Flutter macOS ์„ค์น˜ ๋ฐ ์…‹ํŒ…ํ•˜๊ธฐ.

 

 

์œˆ๋„์šฐ๋‚˜ ๋ฆฌ๋ˆ…์Šค, ํฌ๋กฌ ๋“ฑ์€ Flutter ๊ณต์‹ ํŽ˜์ด์ง€์˜ Install์—์„œ ์ฐพ์•„์„œ ์ฐธ๊ณ ํ•˜๋ฉด ๋œ๋‹ค!

https://docs.flutter.dev/get-started/install

 

 

 

 

 

 

 

1. macOS intel ํ”„๋กœ์„ธ์„œ zip ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ.

 

๋‚˜๋Š” ๋งฅ์œ ์ €๋ผ์„œ Flutter ๊ณต์‹ ํŽ˜์ด์ง€์˜ macOS install์„ ์ฐธ๊ณ ํ–ˆ๋‹ค~!

macOS install ์ฐธ๊ณ 

 

 

** ํ˜„์žฌ ์„ค์น˜ํ•˜๋ ค๋Š” macOS ์—์„œ ์ธํ…” ํ”„๋กœ์„ธ์„œ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”์ง€, Apple Silicon ์„ ์‚ฌ์šฉํ•˜๋Š”์ง€ ํ™•์ธํ•˜๊ณ  ํ•ด๋‹น๋˜๋Š” ํ”„๋กœ์„ธ์„œ์˜ zip ํŒŒ์ผ์„ ๋‹ค์šด๋ฐ›๋Š”๋‹ค. 

 

Apple Silicon์ด ํƒ‘์žฌ๋œ Mac ์ปดํ“จํ„ฐ ํ™•์ธ

 

 

 

 

 

 

 

 

2.  ๋‹ค์šด๋ฐ›์€ zip ํŒŒ์ผ์„ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์••์ถ• ํ•ด์ œ.

cd ~/development
unzip ~/Downloads/flutter_macos_3.0.5-stable.zip

ํ„ฐ๋ฏธ๋„์—์„œ ์œ„์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๋‹ค์šด๋ฐ›์€ zip ํŒŒ์ผ์˜ ์••์ถ•์„ ํ•ด์ œํ•œ๋‹ค.

 

 

 

 

3. flutter ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜๊ธฐ ์œ„ํ•ด path์— ์ถ”๊ฐ€.

๊ทธ๋ฆฌ๊ณ  ๋‚˜์˜ path์— flutter tool์„ ์ถ”๊ฐ€ํ•ด์ค˜์•ผ ํ•œ๋‹ค.

 

Flutter Update your path ์ฐธ๊ณ 

echo $SHELL 
// ์œ„์˜ ๋ช…๋ น์–ด๋ฅผ ์น˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋‚˜์˜ shell์˜ ์ถœ๋ ฅ๋œ๋‹ค. /bin/zsh

ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋‚˜์˜ shell ํ™•์ธ.

 

 

** ๋‚ด๊ฐ€ ์ „์— vim์„ ํ†ตํ•œ zsh path ์ถ”๊ฐ€ ๊ธ€์„ ์ผ์—ˆ๋Š”๋ฐ ๋‚˜๋จธ์ง€๋Š” ๊ฑฐ๊ธฐ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ๋‚˜์˜ path์— flutter tool์„ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค. 

https://d-dual.tistory.com/8?category=975958 

 

 

 

source ~/.zshrc

๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์ถ”๊ฐ€๋œ flutter path์˜ ๋‚ด์šฉ์„ ์—…๋ฐ์ดํŠธํ•ด์ฃผ๊ณ ,

 

 

4.  ์„ค์น˜ ์™„๋ฃŒ!

flutter doctor

๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด๋ณด๋ฉด, flutter tool์ด path์— ์ •์ƒ์ ์œผ๋กœ ์ถ”๊ฐ€๋œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.!!

doctor๋ฅผ ํ†ตํ•ด ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค, Xcode ๋“ฑ ํ•„์š”ํ•œ ๋ชฉ๋ก๋“ค์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.