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

Mobile2

-bash: cd: Xcode.app: No such file or directory ์—๋Ÿฌ ; Xcode.app์˜ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์ฝ์ง€ ๋ชปํ•˜๋Š” ์—๋Ÿฌ ๊ณ ์น˜๊ธฐ 0. vscode์—์„œ ํ”Œ๋Ÿฌํ„ฐ ์ž‘์—… ๋‹คํŠธ ์ฝ”๋“œ ์ž‘์—…ํ•˜๋ ค๋‹ค๊ฐ€ ios ์• ๋ฎฌ๋ ˆ์ดํ„ฐ ๋Œ๋ฆฌ๋ ค๋‹ˆ๊นŒ ์•ˆ ๋Œ. 1. xcode ์—๋Ÿฌ๋กœ ios ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ์•ˆ ์žกํž˜ 2. ํ•ด๊ฒฐ์ฑ…์œผ๋กœ ๋‹ค์Œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋ผ๋Š” ์†”๋ฃจ์…˜์„ ์ฐพ์Œ open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app 3. ๋งž๋Š”์ง„ ๋ชจ๋ฅด๊ฒ ์œผ๋‚˜ ์‹œ๋„ํ•ด๋ด„ 4. ํ„ฐ๋ฏธ๋„์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ ๋ฐœ์ƒ (๋กœ์ปฌ pc Applications ์œ„์น˜์— Xcode.app ์กด์žฌํ•จ) -bash: cd: Xcode.app: No such file or directory 5. flutter doctor๋กœ ๋ญ๊ฐ€ ๋ฌธ์ œ์ธ์ง€ ์ฐพ์•„๋ด„ ์›๋ž˜ ์„ค์น˜ ์•ˆํ•ด๋‘” ์•ˆ๋“œ๋กœ์ด๋“œ ํˆด ์ฒด์ธ ๋ง๊ณค ๋‹ค ์ •์ƒ์ด๋ผ๊ณ  ๋œธ xcode ๋‚ด์šฉ์ด ์—†์–ด์„œ ์˜ต์…˜ -v.. 2023. 5. 1.
[Flutter] TIL #2. Data Types 0. ํ”Œ๋Ÿฌํ„ฐ ์–ธ์–ด Dart์˜ ๋‹ค์–‘ํ•˜๊ณ ๋„ ๋ฒ ์ด์งํ•œ ์ž๋ฃŒํ˜• 1. num ์ˆซ์ž ์ž๋ฃŒํ˜• int ์™€ double์˜ ๋ถ€๋ชจ๊ฒฉ ์ž๋ฃŒํ˜•์œผ๋กœ, num x=1; num y=1.4; ์œผ๋กœ ์ž‘์„ฑํ•ด๋„ ๋ฌธ๋ฒ•์ ์œผ๋กœ ์˜ค๋ฅ˜๊ฐ€ ์—†๋‹ค. (ํ˜„์žฌ๋Š” ์ž˜ ์•ˆ ์“ฐ์ž„) 2. List ์ผ๋ฐ˜์ ์œผ๋กœ ๋‹ค๋ฅธ ์–ธ์–ด์—์„œ array๋ผ๊ณ  ํ•˜๋Š” ์ž๋ฃŒํ˜•์ด๋‹ค. ์‚ฌ์šฉ๋ฒ•์œผ๋กœ๋Š” List ๋ณ€์ˆ˜ ์ด๋ฆ„ = [๋ฉค๋ฒ„, ๋ฉค๋ฒ„, ๋ฉค๋ฒ„ ....] ; ๋กœ ์ž‘์„ฑํ•˜์—ฌ ์‚ฌ์šฉํ•œ๋‹ค. ex. List numbers = [0,1,2,3,4]; - List๋ณ€์ˆ˜์—๋Š” ์ถ”๊ฐ€์ ์œผ๋กœ ๋‚ด์žฅ๋˜์–ด์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋ฉ”์†Œ๋“œ๊ฐ€(์˜ˆ๋ฅผ ๋“œ๋ฉด .add์™€ ๊ฐ™์€..) ๋งŽ๋‹ค. Dart๋Š” ๊ฐ์ฒด์ง€ํ–ฅ ์–ธ์–ด์ด๊ธฐ ๋•Œ๋ฌธ์—, ์ „๋ถ€ class๋กœ ๋˜์–ด์žˆ๊ณ  object๋ฅผ ์ƒ์† ๋ฐ›๊ณ  ์žˆ๋‹ค. - collection if ์‚ฌ์šฉ if์— ํ•ด๋‹นํ•˜๋Š” ์กฐ๊ฑด์ด ์ฐธ์ด๋ฉด.. 2023. 3. 11.