In a previous post we talked about using Google’s Voice Recognition web service for voice recognition in iOS apps. Part of the process involved compiling libFLAC for iOS. This includes building a 386 binary for the simulator and an arm7 binary for the device. This is a pain point if you are new to C or if the thought of cross-compilation gives you the heebee-geebees.
I came across a great tutorial on github for creating Frameworks for use in other iOS apps. We followed this tutorial and created a github project for building libFLAC as an iOS framework. You can clone the repository and start using libFLAC in your own iOS applications. Don’t forget to checkout our open-sourced project wav_to_flac for converting WAVE-encoded files generated by Apple into FLAC-encoded files using libFLAC.