iOS/๐Ÿ›  ์ด์Šˆ์™€ ๊ถ๊ธˆ์ฆ

Could not find module 'Kingfisher' for target 'x86_64-apple-ios-simulator' ํ•ด๊ฒฐ

woozzang 2021. 12. 27. 11:38

 

๋ฉ”์‹œ์ง€ ๊ฐ„๋‹จ ํ•ด์„

x86_64 ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์šฉ Kingfisher ๋ชจ๋“ˆ์„ ๋ชป์ฐพ๊ฒ ๋‹ค.

๋Œ€์‹  arm64 ์™€ arm64 ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์šฉ ๋ชจ๋“ˆ์€ ์ฐพ์•˜๋‹ค.

 

์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ์ƒํ™ฉ

  • ์ธํ…” 1๋ช…, M1 2๋ช…์œผ๋กœ ์ง„ํ–‰์ค‘์ธ ํ˜‘์—… ํ”„๋กœ์ ํŠธ
  • ์ €๋Š” develop ๋ธŒ๋žœ์น˜์—์„œ ๋Œ์–ด์™€์„œ M1 ์œผ๋กœ ์ตœ์ดˆ ๋นŒ๋“œํ•œ ์ƒํ™ฉ

 

์™œ ์ด ๋ถ€๋ถ„์ด ํ˜ผ๋ž€์Šค๋Ÿฌ์šด์ง€?

  • ๋‚˜๋Š” M1 ๋งฅ๋ถ ํ”„๋กœ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค (ARM ๊ธฐ๋ฐ˜ ๋งฅ) 
  • ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋Š” arm64 ๋กœ ๋Œ์•„๊ฐˆ ๊ฒƒ์ด๋‹ค
  • x86_64 ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€ ์•Š๋‹ค! Open using Rosseta ์˜ต์…˜์œผ๋กœ ์‹คํ–‰์‹œํ‚ค์ง€ ์•Š์Œ

 

๋ฐœ๊ฒฌํ•œ ์›์ธ์€?

  • ์ธํ…” ํŒ€์›์ด ํƒ€๊ฒŸ์˜ build settings ์—์„œ Excluded Architecture ์—์„œ arm64 ๋กœ ์„ค์ •ํ•ด ๋†“์•˜๋‹ค.
    • ์•„๋งˆ ํŒ€์›์ด ๋ฐ˜๋Œ€์˜ ๊ฒฝ์šฐ (M1 ํ”„๋กœ์ ํŠธ๋ฅผ ์ธํ…”์—์„œ ๋นŒ๋“œ) ๋กœ ๋นŒ๋“œ๊ฐ€ ๋˜์ง€ ์•Š์•„์„œ ์ถ”๊ฐ€ํ•ด๋†“์€ ๊ฒƒ ๊ฐ™๋‹ค.
  • ์ด ๋ถ€๋ถ„์„ ์‚ญ์ œํ•˜๋‹ˆ ์ •์ƒ์ ์œผ๋กœ ๋นŒ๋“œ๊ฐ€ ๋˜์—ˆ๋‹ค!

 

๊ด€๋ จ ์ด๋ฏธ์ง€ ( ์ค‘์š” !! )

์ด ๋•Œ, Project ํŒŒ์ผ์˜ Build Settings ๋ฅผ ์กฐ์ž‘ํ•˜๋ฉด ์•„๋ฌด๋Ÿฐ ํšจ๊ณผ๊ฐ€ ์—†์—ˆ๋‹ค.

ํƒ€๊ฒŸ์˜ Build Settings ๋ฅผ ์กฐ์ž‘ํ•ด์ฃผ์ž!

 

๋Š๋‚€ ์ 

์ž์‹ ์ด ํ•œ ์ผ์€ ์ž˜ ๊ธฐ์–ตํ•˜๊ณ  ์žˆ๋‹ค๊ฐ€ ํŒ€์›์—๊ฒŒ ๊ณต์œ ํ•ด์ฃผ์ž

๋‚˜๋„ ๊ธฐ๋ก์„ ์ž˜ ํ•ด๋†“์•„์•ผ๊ฒ ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค

ํ† ์ด ํ”„๋กœ์ ํŠธ์ง€๋งŒ XcodeGen ์„ ๋„์ž…ํ•˜๊ณ  ์‹ถ๋‹ค


์˜ค๋Š˜๋„ ๋‚˜๋Š” ์„ฑ์žฅํ–ˆ๋‹ค!!๐Ÿ”ฅ

 

๐Ÿค–๐ŸŸข[์šฐ์งฑ์˜ iOS ๋ธ”๋กœ๊ทธ]๐Ÿ”ต๐Ÿ’ป

iOS๋ฅผ ๊ณต๋ถ€ํ•˜๋ฉด์„œ ๋ฐฐ์šด ๋‚ด์šฉ์„ ๊ธฐ๋กํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

 

[์ฐธ๊ณ  ๋งํฌ]

https://jusung.github.io/Xcode12-Build-Error/

https://developer.apple.com/forums/thread/116142