Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 8 bitcode compatibility

I noticed an issue with the new XCode 8, that makes it impossible to archive on XCode 7 with bitcode. So for example if I'm trying to develop a library on XCode 8, when using on Xcode 7 and enabling bitcode I'm getting this error:

Invalid bitcode version (Producer: '800.0.38.0_0' Reader: '703.0.29_0')

Is there any workaround for that when developing libraries on Xcode 8 (objective c)?

like image 335
Krypton Avatar asked Sep 13 '16 09:09

Krypton


People also ask

Does Xcode 13.2 Work on Big Sur?

Xcode 13.2 requires a Mac running macOS 11.3 Big Sur or later.

Does Apple require Bitcode?

Including Bitcode is optional for iOS apps, but mandatory for watchOS or tvOS apps. "Meaning you can slice/segment it out for different processors, etc. once it's in the store, reducing the payload do the user accordingly."

What version of Xcode do I need for iOS 16?

Xcode 14. This version of Xcode: Includes SDKs for iOS 16, iPadOS 16, macOS 12.3, tvOS 16, and watchOS 9. Supports on-device debugging in iOS 11 or later, tvOS 11 or later, and watchOS 4 or later.

What versions of iOS does Xcode 13 support?

Xcode 13 includes SDKs for iOS 15, iPadOS 15, tvOS 15, watchOS 8, and macOS Big Sur 11.3. The Xcode 13 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 13 requires a Mac running macOS 11.3 or later.


2 Answers

In my case, the problem came when i add new pod library which change bitcode compress. So changing bitcode in Build Setting resolve my problem.

Note that for projects using CocoaPods you should set ENABLE_BITCODE = NO on both the project and the Pods container project targets.

enter image description here

like image 163
Suke Avatar answered Oct 22 '22 05:10

Suke


If anyone is still trying to solve this, at the end we created a new binary using Xcode 7 (You can download older versions of Xcode form here). There's no way to make Xcode 8 to create a build using an older version of bitcode.

like image 24
JP Illanes Avatar answered Oct 22 '22 03:10

JP Illanes