Creating static library for iPhone

后端 未结 4 1696
日久生厌
日久生厌 2020-12-07 18:28

There\'s an open source library that I would like to use for my iPhone app. The library is written in C and compiles with Makefiles. I would like to use a static library.<

4条回答
  •  轮回少年
    2020-12-07 18:35

    For autoconf based library, I would vote for Christopher Stawarz's build script:

    http://pseudogreen.org/blog/build_autoconfed_libs_for_iphone.html

    With this script, you can automate the whole process with single command, and easily come up with library binaries for different platforms, such as iPhoneOS 2.0/2.1/2.2/2.2.1 and iPhoneSimulator 2.0/2.1/2.2/2.2.1.

    However, due to the change of Xcode 3.1, the $(SDKROOT) build setting had became some short names like "macosx10.5", "iphoneos2.2.1" or "iphonesimulator2.2.1". So, the way he mentioned in the article about setting search path in Xcode for library and header will not work (in Xcode 3.1). You will need to hard code the path by yourself.

提交回复
热议问题