iOS) Terminating app due to uncaught exception โ€˜NSInternalInconsistencyExceptionโ€™, reason: โ€˜Need an imageRefโ€™

less than 1 minute read

๐Ÿ’ซย ์ƒํ™ฉ

  • ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ „ํ˜€ ์ž‘์—…ํ•˜์ง€ ์•Š์€ ๋ถ€๋ถ„์—์„œ ์•ฑ์ด ์ข…๋ฃŒ๋˜๋Š” ๊ฒƒ์„ ๊ฒฝํ—˜ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Need an imageRef'ย ์—๋Ÿฌ์™€ ํ•จ๊ป˜ ์•ฑ์ด ์ข…๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

1

  • ํ•ด๋‹น ๋ทฐ์—์„œ๋Š” ์ž‘์—…์กฐ์ฐจํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์— ํ™•์ธ์„ ๋ชปํ–ˆ์—ˆ๊ณ  ์–ด๋””์„œ๋ถ€ํ„ฐ ์ž˜๋ชป๋˜์—ˆ๋Š”์ง€ ์ปค๋ฐ‹ ํžˆ์Šคํ† ๋ฆฌ๋ฅผ ๋”ฐ๋ผ๊ฐ€๋ณด์•˜์Šต๋‹ˆ๋‹ค.
    • Card ๋ผ๋Š” Color ์—์…‹์„ ์ถ”๊ฐ€ํ•œ ์ปค๋ฐ‹๋ถ€ํ„ฐ ํ•ด๋‹น ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿšจย ํ•ด๊ฒฐ

์•„๋ž˜๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ํ•ด๊ฒฐํ•˜์˜€์Šต๋‹ˆ๋‹ค.

Loading image from xcassets causes assertion failure

  • ๊ฐ•์ œ์ข…๋ฃŒ๊ฐ€ ๋˜๋Š” ํ•ด๋‹น ๋ทฐ์˜ ์ปฌ๋ ‰์…˜ ๋ทฐ ์…€์—์„œ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” ์‚ญ์ œ๋œ Card ๋ผ๋Š” ์ด๋ฏธ์ง€ ์—์…‹์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ๊ณ , ์ด๊ฒƒ์ด ์ปฌ๋Ÿฌ ์—์…‹๊ณผ ์ค‘๋ณต๋˜๋ฉด์„œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ์˜€์Šต๋‹ˆ๋‹ค.
  • ์ด๋ฏธ์ง€ ๋ทฐ์—์„œ Card ๋ผ๋Š” ์ด๋ฏธ์ง€ ์—์…‹์„ ์‚ญ์ œํ•˜์—ฌ ํ•ด๊ฒฐํ•˜์˜€์Šต๋‹ˆ๋‹ค.

2

Categories:

Updated: