๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐ŸŽ iOS/Error Handling

[Error, Xcode] Bitcode๋ž€? App Thinning ? +Bitcode ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ

728x90

iOS 9๋ถ€ํ„ฐ๋Š” iOS๊ฐ€ ์„ค์น˜๋œ ๊ธฐ๊ธฐ๋ณ„๋กœ ์ตœ์ ํ™”๋œ ๋ฐ”์ด๋„ˆ๋ฆฌ๊ฐ€ ๋”ฐ๋กœ ์ƒ์„ฑ๋˜์–ด ๋‹ค์šด๋กœ๋“œ ๋˜๋Š” ๊ธฐ๋Šฅ์ด ์ถ”๊ฐ€๋˜์—ˆ๋‹ค.

App Thinning์ด๋ผ๋Š” ๊ธฐ์ˆ ๊ณผ ๊ด€๋ จํ•˜์—ฌ XCode7๋ถ€ํ„ฐ๋Š” BitCode๋ผ๋Š” ์„ค์ •์ด Build Settings์— ์ถ”๊ฐ€๋˜์—ˆ๊ณ  ๊ธฐ๋ณธ๊ฐ’์€ 'YES'์ด๋ฉฐ ์ด๋Š” App Thinning์„ ์ง€์›ํ•œ๋‹ค๋Š” ์˜๋ฏธ!

 

- App Thinning ?
lets you create apps that use the most device features, occupy minimum disk space, and accommodate future updates that can be applied by Apple. Faster downloads and more space for other apps and content provides a better user experience. - iOS Developer Library

 

> ์ตœ์†Œ ๋””์Šคํฌ๋ฅผ ์ด์šฉํ•ด ํ–ฅํ›„ ์—…๋ฐ์ดํŠธ์™€ ๋น ๋ฅธ ๋‹ค์šด๋กœ๋“œ๋ฅผ ์ œ๊ณตํ•จ์œผ๋กœ์จ ํšจ์œจ์„ฑ์„ ์ฆ๊ฐ€์‹œํ‚ค๋Š” ๊ธฐ์ˆ 


- BitCode (๋น„ํŠธ ์ฝ”๋“œ) ?
Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.
For iOS apps, bitcode is the default, but optional. For watchOS and tvOS apps, bitcode is required. If you provide bitcode, all apps and frameworks in the app bundle (all targets in the project) need to include bitcode

> ๋น„ํŠธ ์ฝ”๋“œ๋Š” ์ปดํŒŒ์ผ ๋œ ํ”„๋กœ๊ทธ๋žจ์˜ ์ค‘๊ฐ„ ํ‘œํ˜„์ž…๋‹ˆ๋‹ค๋น„ํŠธ ์ฝ”๋“œ๋ฅผ ํฌํ•จํ•˜๋ฉด ์•„์ดํŠ ์ฆˆ ์ปค๋„ฅํŠธ์— ์—…๋กœ๋“œ ์•ฑ์€ ์ปดํŒŒ์ผ ์ €์žฅ์†Œ์— ์—ฐ๊ฒฐ๋ฉ๋‹ˆ๋‹ค๋น„ํŠธ ์ฝ”๋“œ๋ฅผ ํฌํ•จํ•˜๋ฉด ์• ํ”Œ ์Šคํ† ์–ด์— ์•ฑ์˜ ์ƒˆ ๋ฒ„์ „์„ ์ œ์ถœํ•  ํ•„์š” ์—†์ด ๋ฏธ๋ž˜์— ์•ฑ ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ๋‹ค์‹œ ์ตœ์ ํ™”ํ•  ์ˆ˜ ์žˆ๊ณ iOS ์•ฑ์˜ ๊ฒฝ์šฐ ๋น„ํŠธ ์ฝ”๋“œ ์˜ต์…˜์€ ์„ ํƒ ์‚ฌํ•ญ์ด๊ณ , watchOS ๋ฐ tvOS ์•ฑ์˜ ๋น„ํŠธ ์ฝ”๋“œ๊ฐ€ ํ•„์ˆ˜๋กœ ์ ์šฉ๋˜์–ด์•ผ ํ•œ๋‹ค - iOS Developer Library

 

์ปดํŒŒ์ผ ํ•  ๋•Œ Bitcode ๊ด€๋ จ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ธฐ๋„ ํ•œ๋‹ค. 

[ ERROR ]
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64...


[ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ]
project > Build Settings > ํ•ด๋‹น ์˜ต์…˜ ‘NO’ ๋ณ€๊ฒฝ

๋ฐ˜์‘ํ˜•