Computer Science/swift ๋ฝ€๊ฐœ๊ธฐ - ์ฐธ๊ณ  ์‚ฌ์ดํŠธ ์ €์žฅ์†Œ

[Xcode] Compiling failed: extra tokens at the end of #sourceLocation directive ์—๋Ÿฌ ํ•ด๊ฒฐ โ€ผ๏ธ

_cactus 2021. 10. 30. 00:26
๋ฐ˜์‘ํ˜•

xcode preview๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์ž๊พธ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค

 

Compiling failed: extra tokens at the end of #sourceLocation directive

๋ฐ˜์‘ํ˜•

 ์ด์™€ ๊ฐ™์€ ์—๋Ÿฌ๋Š” xcode ๋ฒ„๊ทธ๋ผ๊ณ  ํ•œ๋‹ค.

if ๋ฌธ์ด๋‚˜ ํด๋กœ์ €์™€ ๊ฐ™์ด '{' ๊ด„ํ˜ธ ์—ด๊ธฐ ๋ถ€๋ถ„์— ์ฃผ์„์ด ์žˆ์œผ๋ฉด ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜๋ผ๊ณ  ํ•œ๋‹ค. 

 

์‹ค์ œ๋กœ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ์ง€์ ์œผ๋กœ ๊ฐ€๋ณด๋‹ˆ ๊ด„ํ˜ธ ์—ด๊ธฐ ๋ถ€๋ถ„์— ์ฃผ์„์ด ๋‹ฌ๋ ค์žˆ์—ˆ๋‹ค

์ € ์ฃผ์„์„ ์‚ญ์ œํ•ด์ฃผ๊ณ  ๋‹ค์‹œ ๋นŒ๋“œํ•˜์˜€๋”ฐ ! 

Build Success !! 

728x90
๋ฐ˜์‘ํ˜•