๐ŸŽฎ Unity Study/ERROR Q&A

[Xcode Build Error] bitcode bundle could not be generated.....

ibelieveinme 2022. 3. 11. 15:24
728x90

[์—๋Ÿฌ]

Xcode Build Error ์‹œ bitcode ๊ด€๋ จ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค.

bitcode bundle could not be generated because '~.../Libraries/ADL-Plugins/Plugins/iOS/liblz4.a(lz4w.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7

 

[์›์ธ]

Xcode ์—์„œ Bitcode๋ž€

Xcode์—์„œ Bitcode๋ฅผ ํฌํ•จํ•œ iOS ์•ฑ์„ AppStore์— ์ „์†กํ•˜๋ฉด, AppStore ์—์„œ ์‚ฌ์šฉ์ž์˜ ๋””๋ฐ”์ด์Šค์— ๋”ฐ๋ผ ์ตœ์ ํ™”๋œ ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ๋‹ค์‹œ ๋นŒ๋“œํ•˜๋Š” ๊ณผ์ •์„ ์ˆ˜ํ–‰ํ•œ๋‹ค. ์ฆ‰, Bitcode๋ฅผ ๋ฏธ๋ฆฌ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด ์ƒˆ๋กญ๊ฒŒ ์ถœ์‹œ๋˜๋Š” ๋””๋ฐ”์ด์Šค๋งˆ๋‹ค ๊ฐœ๋ฐœ์ž๊ฐ€ ์ตœ์ ํ™”ํ•˜์—ฌ ๋‹ค์‹œ ๋นŒ๋“œํ•ด์•ผ ํ•˜๋Š”๋ฐ, Bitcode๋ฅผ ๋ฏธ๋ฆฌ ์ ์šฉํ•ด์„œ ์•ฑ์Šคํ† ์–ด๋กœ ์ „์†กํ•˜๋ฉด ์ด๋Ÿฌํ•œ ์ˆ˜๊ณ ๋กœ์›€์„ ๋œ์–ด์ค„ ์ˆ˜ ์žˆ๋‹ค. ๊ทธ๋ž˜์„œ Bitcode๋ฅผ ์ ์šฉํ•˜๋Š” ๊ณผ์ •์ด ํ•„์š”ํ•œ ๊ฑฐ๋‹ค.

 

์œ ๋‹ˆํ‹ฐ์—์„œ ๋นŒ๋“œํ•œ Xcode ํ”„๋กœ์ ํŠธ๋Š” ๋””ํดํŠธ๋กœ Build Option> Use Bitcode๊ฐ’์ด TRUE์ด ๊ฐ’์ด ์ผœ์ ธ ์žˆ์–ด๋„ ์ผ๋ฐ˜ ๋นŒ๋“œ ๊ณผ์ •์—์„œ๋Š” app์˜ Bitcodeํ™”๋ฅผ ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ๋ฌธ์ œ๊ฐ€ ์—†์ง€๋งŒ, app์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์™ธ๋ถ€ static_library์—์„œ๋„ Bitcode๊ฐ€ ์ ์šฉ๋˜์ง€ ์•Š์œผ๋ฉด app์„ Archiveํ•˜๊ฒŒ ๋  ๋•Œ, ๋งํฌ๊ณผ์ •์—์„œ Xcode์—์„œ app ๋งํฌ์‹œ ์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ  archive๊ฐ€ ์‹คํŒจํ•œ๋‹ค. ์ฆ‰, app์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์™ธ๋ถ€ static_library์—์„œ๋„ Bitcode๋ฅผ ์ ์šฉํ•˜๊ธฐ ์œ„ํ•ด Xcode์—์„œ ์ถ”๊ฐ€์ž‘์—…์„ ์ˆ˜ํ–‰ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค.
(์ถœ์ฒ˜: https://oraora.tistory.com/entry/iOS-ํ”„๋กœ์ ํŠธ์—์„œ-์‚ฌ์šฉํ•˜๋Š”-์ •์ -๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋„-Bitcode-์ ์šฉ [FSS])

 

 

[ํ•ด๊ฒฐ์ฑ…]

 

iOS ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ •์  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋„ Bitcode ์ ์šฉ

# iOS์—์„œ bitcode๋ž€? # ์ง€๊ธˆ ํ”„๋กœ์ ํŠธ์—์„œ๋Š”? – ์œ ๋‹ˆํ‹ฐ์—์„œ ๋นŒ๋“œํ•œ Xcode ํ”„๋กœ์ ํŠธ๋Š” ๋””ํดํŠธ๋กœ Build Option> Use Bitcode๊ฐ’์ด TRUE ์ด ๊ฐ’์ด ์ผœ์ ธ ์žˆ์–ด๋„ ์ผ๋ฐ˜ ๋นŒ๋“œ ๊ณผ์ •์—์„œ๋Š” app์˜ Bitcodeํ™”๋ฅผ ํ•˜์ง€ ์•Š์œผ๋ฏ€..

oraora.tistory.com

๊ทผ๋ฐ, ์œ„ ์„ค์ •์„ ๋‹ค ํ–ˆ๋Š”๋ฐ ๊ทธ๋ž˜๋„ ์—ฌ์ „ํžˆ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ์—ˆ๋‹ค.

 

๋น„ํŠธ์ฝ”๋“œ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๋Š” library๊ฐ€ ์žˆ์—ˆ๋‚˜๋ณด๋‹ค. ๋น„ํŠธ์ฝ”๋“œ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๋Š” library๋“ค์„ ์œ„ํ•ด ๊ธฐ๋ณธ์…‹ํŒ…๊ฐ’์„ enable bitcode = no ๋กœ ํ•ด์ฃผ๊ณ  ์œ„ ์‚ฌ์ดํŠธ ๊ธ€์ฒ˜๋Ÿผ ์ผ์ผ์ด ์ˆ˜์ •ํ•ด์ค˜์•ผ ํ•˜๋‚˜๋ณด๋‹ค.

 

xcode project build successfully but when archiving: bitcode bundle could

My XCode project was generated by Unity so I was able to build the project without errors. But when I try to archive it for ad hoc, I get this: ld: bitcode bundle could not be generated becaus...

stackoverflow.com

์ฆ‰, ๋‚ด ๊ฒฝ์šฐ์— ํ•ด๊ฒฐ๋œ ๋ฐฉ๋ฒ•์€ ์œ„ stackoverflow ๋ฐฉ๋ฒ•์ด๋‹ค. target setting -> Enable bitcode = NO. ์„ค์ •ํ•ด์ฃผ๊ธฐ.

728x90