Finally I come up with the solution which credit from this thread.
Step 1: Configure
./configure —config=iPhone —static —no-tests —no-samples --omit=Data/ODBC,Data/MySQL
For OpenSSL support
./configure —config=iPhone —static —no-tests —no-samples --omit=Data/ODBC,Data/MySQL --include-path=[OPENSSL INCLUDE PATH]
Step 2: Change the Compile
Open file in "poco-1.4.6p2-all/build/config/iPhone", Change :
- for CC: xcrun -find -sdk iphoneos clang
- for CXX: xcrun -find -sdk iphoneos clang++
Step 3: Make your library
- make IPHONE_SDK_VERSION_MIN=3.0 POCO_TARGET_OSARCH=armv6 -s -j4
- make IPHONE_SDK_VERSION_MIN=3.2 POCO_TARGET_OSARCH=armv7 -s -j4
- make IPHONE_SDK_VERSION_MIN=4.3 POCO_TARGET_OSARCH=armv7s -s -j4
- make IPHONE_SDK_VERSION_MIN=4.3 POCO_TARGET_OSARCH=arm64 -s -j4