How to compile libpomelo for iOS

Monday, October 13th, 2014 | Dennis D. Spreen | iOS, Mac OS X, Pomelo

This is a tutorial on how to compile libpomelo for iOS (libpomelo is a C language client SDK for Pomelo) on Mac OS X 10.9.5 with Xcode 6.0.1.

1. download and install git
2. open a terminal and clone the libpomelo source

3. download gyp as well (we’re using the github gyp svnsync repo)

4. you can verify the latest xcode iOS SDK updates with

or download them via Xcode->Preferences->Downloads

5. prepare build script with

6. compile with

or  for use within the iOS simulator

you’ll have to change the build_iossim script to use “iphonesimulator8.0” instead of “iphonesimulator6.1” (if not installed, see step 4).

7. After the ** BUILD SUCCEEDED ** message you’ll find libpomelo.a in the build/Default-iphonesimulator or build/Default-iphoneos folder

How to put the ios and iossim static library files into one library

After building both static libraries you may want to put the ios and iossim libraries into one library – containing both armv7 and ios vm x86 code:

Or you want to have them separated by name:

Tags: , , , ,

No comments yet.

Leave a comment

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.


QR Code