๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โ—๏ธError

[iOS Error] The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

by Fomagran ๐Ÿ’ป 2021. 11. 2.
728x90
๋ฐ˜์‘ํ˜•

์•ˆ๋…•ํ•˜์„ธ์š” Foma ๐Ÿ’ป  ์ž…๋‹ˆ๋‹ค!

 

์˜ค๋Š˜์€ ์ œ๋ชฉ๊ณผ ๊ฐ™์ด ํƒ€์ž…์ถ”๋ก  ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ๋˜์—ˆ๋Š”๋ฐ์š”.

 

"The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions "

 

์•„๋‹ˆ ๊ทผ๋ฐ... ๋ถ„๋ช… ์ „์—๋Š” ์ž˜๋๋Š”๋ฐ ์™œ ์ด๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋œจ์ง€...?

 

ํ•˜๊ณ  ๊ตฌ๊ธ€๋งํ•ด์„œ ์ฐพ์•„๋ณด์•˜๋”๋‹ˆ Xcode 12 Beta์—์„œ ์ƒ๊ธฐ๋Š” ์˜ค๋ฅ˜๋ผ๊ณ  ํ•˜๋„ค์š”...

 

ํ•ด์„์„ ํ•ด๋ณด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 

"์ปดํŒŒ์ผ๋Ÿฌ์—์„œ ํ•ด์„ํ•˜๊ธฐ์—” ๋„ˆ ์ฝ”๋“œ๊ฐ€ ๋„ˆ๋ฌด ๋ณต์žกํ•ด..ใ…œ ์ข€๋งŒ ์ชผ๊ฐœ์„œ ์จ์ค˜..."

 

์ „์—๋Š” ์ฝ”๋“œ๊ฐ€ ์ด์™€ ๊ฐ™์ด ๋˜์–ด์žˆ์—ˆ์–ด์š”.. (์™œ filterํ•ด๋†“๊ณ  ... map์„ ๋˜ ์ผ์ง€...)

 

 

filter์™€ ๋˜‘๊ฐ™์€ ์—ญํ• ์„ ํ•˜๋Š” map์„ ์—†์• ์ฃผ๊ฒ ์Šต๋‹ˆ๋‹ค.

 

 

์ด๋ ‡๊ฒŒ ์กฐ๊ธˆ ์ค„์—ฌ์คฌ๋”๋‹ˆ ๊ธˆ๋ฐฉ ๋นŒ๋“œ์— ์„ฑ๊ณตํ–ˆ์Šต๋‹ˆ๋‹ค.

 

ํ•ด๊ฒฐ๋ฒ•์€ ๊ฐ„๋‹จํ•ด์š”.

 

์ „์— ์žˆ๋˜ ๋ถˆํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์ค„์—ฌ์ฃผ๊ฑฐ๋‚˜ ์ฝ”๋“œ๋ฅผ ์ชผ๊ฐœ์„œ ์จ์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค!

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€