I was able to create a static C library on OSX using make on the command line.
I tried using the same Makefile (with ARCHFLAGS=-arch armv6 -arch armv7 ) to create a static library for iOS, but with an error:
gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin10-gcc-4.2.1': execvp: No such file or directory
I think this does not work, because I use the OSX SDK make instead of some part of the iOS SDK. Any clues?
NB For more information about the library in question (levmar) and the Makefile, see this answer .
source share