- Build for armv6 and armv7. This ensures you'll get best performance on older (pre 3 GS) and newer (3 GS and newer) devices.
- Build for iPhone Simulator. Simplifies debugging.
- Specify the minimum iPhone SDK version for the target. If you don't do this, you may run into issues like getting the error shown below when launching your app on a device running iOS < 3.2. Since newer devices are very likely running iOS 3.2 or later, specify a mininum iOS version of 3.0 for armv6 and 3.2 for armv7.
- Code: Select all
dyld: lazy symbol binding failed: Symbol not found: ___sync_fetch_and_add_4
- Code: Select all
# build for iOS device, armv6 and armv7
./configure --config=iPhone --no-tests --no-samples --omit=...
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
# build for simulator
./configure --config=iPhoneSimulator --no-tests --no-samples --omit=...
make -s -j4
In Xcode, drag the required POCO libs ($POCO_BASE/lib/iPhoneOS/armv6/libPocoFoundation.a, etc.) to the Frameworks folder and use conditional build settings ("Add Build Setting Condition") in the Target Search Paths to link the appropriate variants of the POCO libs by setting library search paths accordingly. See the screenshot below for an example.






