![]() Having Apple load and compile all your code isn’t practical for many reasons, so they needed an Intermediate Representation (IR) – something that the developer considers complete but that Apple can recompile. ![]() If you wanted to take advantage of Apple’s latest improvements, you would need to recompile and reload your app all the time and many developers wouldn’t do this in a timely fashion. Compilers are always getting better, but to take advantage of compiler improvements you need to recompile. Why does Apple require this? All apps require a compiler to convert code into machine code that can be used on a given device. It became a requirement for watchOS and tvOS applications. What is it and why do you want/need it?Īpple introduced bitcode together with iOS9, in 2015. What is bitcode?įirst, let’s talk about bitcode. Today I’d like to share one of those stories that is happening right now: building WebRTC with bitcode. It usually goes smoothly, but every once in a while there is some mystery wrapped in an enigma which makes the builds interesting. Browse for the learnings, stay for the drama!įor the past 5 years, I’ve been making the WebRTC builds as part of maintaining the React Native WebRTC library (and prior to that I was building them for the Cordova plugin for a few years). The story – only available on webrtcHacks – gives some background on bitcode, walks through numerous bugs, and finishes with a working build you can reference. Saúl’s efforts to get WebRTC building with bitcode turned into a daily soap opera. ![]() He is one of the core contributors to Jitsi, react-native-webrtc, and libuv among many others. Saúl is a long-time open source contributor, a frequent speaker at RTC-related events, and a respected WebRTC expert. As he shows in the engrossing drama below, Saúl Ibarra Corretgé found out the hard way that getting WebRTC to build with bitcode so it can run on these devices isn’t so easy. No stranger to new device types, Apple now requires the use of bitcode, its intermediary format, for iOS and tvOS apps. WebRTC has made its way into nearly every kind of device platform there is out there. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |