Computer Science

[Xcode] Preview crashed ํ˜„์ƒ

_cactus 2021. 6. 4. 20:56
๋ฐ˜์‘ํ˜•

๋‚˜๋Š” swift ์ž…๋ฌธ์ž๋‹ค

swfit์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ๋ฐ˜๋“œ์‹œ xcode์—์„œ ์จ์•ผํ•œ๋‹ค (๋‹ค๋“ค ์•Œ์ฃ ?)

์ด๋Ÿฐ ์ž…๋ฌธ์ž์—๊ฒŒ preview๊ฐ€ ์ž๊พธ ์‹œ๋ จ์„ ์ค€๋‹ค

๋‚จ๋“ค์ด ํ•˜๋Š”๊ฑฐ ๋ณด๋‹ˆ๊นŒ preview๋ฅผ ํ†ตํ•ด์„œ dynamicํ•˜๊ฒŒ ์ฝ”๋”ฉํ•˜๊ณ  uiํ™•์ธํ•˜๋˜๋ฐ

๋‚˜๋Š” ๋ญ ํ™”๋ฉด ํด๋ฆญ๋งŒ ํ•˜๋ฉด ์ž๊พธ preview crashed ํ•˜๋ฉด์„œ ๋นจ๊ฐ„ ์—‘์Šค๊ฐ€ ๋œฌ๋‹ค ใ… ใ… ใ… 

๊ฒฐ๊ตญ ์—๋Ÿฌ๋ฅผ ๊ณ ์ณ๋ณด๊ธฐ๋กœ..!

preview์ฐฝ ์ƒ๋‹จ์— ๋ณด๋ฉด preview crashed์— ๋Œ€ํ•œ ์„ค๋ช…์„ ํ•ด์ค€๋‹ค.

ํ•„์ž์˜ ๊ฒฝ์šฐ๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด ๋–ด๋‹ค

์ผ๋‹จ ํ•ด๊ฒฐ์„ ํ•˜๊ณ  ์‹ถ์—ˆ๊ธฐ ๋–„๋ฌธ์— Diagnostics๋ฅผ ํด๋ฆญํ•ด๋ดค๋‹ค

 

 

HumanReadableNSError: Unable to boot device due to insufficient system resources.
Please see Simulator Help for information on adjusting resource limits.


NSPOSIXErrorDomain (67):
==NSLocalizedFailureReason: The current system settings are not sufficient to allow booting additional simulators: maxFiles: 12288, openFiles: 11386, enforcedFilesBuffer: 1868

์Œ... ์›ฌ ๋ฆฌ์†Œ์Šค ์—๋Ÿฌ..?

 

๊ตฌ๊ธ€๋งํ•ด๋ณด๋‹ˆ ๋‚˜๊ฐ™์€ ์‚ฌ๋žŒ์ด ๋ช‡ ๋ช… ๋” ์žˆ์—ˆ๋‹ค

stack overflow์—์„œ ํ•ด๊ฒฐ๋ฐฉ์•ˆ์„ ์ฐพ์•˜๋‹ค

ํ„ฐ๋ฏธ๋„์—  sudo launchctl limit maxproc 2000 2500  ๋ฅผ ์ž…๋ ฅํ•˜๋ผ๋Š” ๊ฒƒ์ด์—ˆ๋‹ค

 

ํ–ˆ๋Š”๋ฐ ๋‚œ ์™œ ์•ˆ๋˜์ง€..

์—ฌ์ „ํžˆ ๊ณ„์†๋˜๋Š” preview crashed.. ํ•˜..

 

์ €๊ฑฐ ํ•˜๋ฉด ๋œ๋Œ€์š”,, ์ €๋ง๊ณ  ๋‹ค๋ฅธ๋ถ„๋“ค๋„ ์‹œ๋„ํ•ด๋ณด์„ธ์š”

์—๋Ÿฌ๊ฐ€ ๊ณ ์ณ์งˆ ์ˆ˜ ์žˆ์œผ๋‹ˆ,, :)

 

728x90
๋ฐ˜์‘ํ˜•