Chilkat IOS / IPhone Library Install NotesMust Link w/ C++ Runtime LibsThe Chilkat internals are written in C++. Therefore, your Objective-C application will need to link against the C++ runtime libraries. The easiest way to do it is to include an empty source file with the file extension "cpp" in your app target. Linking may require -lresolv and -lpthread system librariesDepending on what functionality is used, your application may need to link with these additional system libraries: -lresolv, -lpthread. Simulator vs. Device Static LibThere are separate static libs for targeting an actual IPhone/IPad device vs. the simulator. Both libs are named "libchilkatIos.a". After unzipping, the simulator version will be located in the "libSimulator" directory, and the device version will be located in the "libDevice" directory. Creating a Universal Chilkat LibA universal Chilkat lib can be created by running the following command from a shell prompt: libtool -static -o libchilkatIos.a libDevice/libchilkatIos.a libSimulator/libchilkatIos.a autoreleaseAll objects returned by Chilkat methods, including NSString, NSNumber, NSData, NSMutableData, NSDate, and "Cko" Chilkat objects are autorelease. The application does not need to release them. Important: See this note on the Chilkat blog about Auto-Release in Background Threads. .mm Source File ExtensionAny application source file that includes a Chilkat header (.h) must be named using the .mm file extension. IOS 5 and ARC (Automatic Reference Couunting)The Chilkat library for IOS 4.3 is also fully compatible with IOS 5. It will also work with ARC enabled. About the Size of the .a Library...Any linker that links static libs (C, C++, Objective-C) only compiles into your executable the library code directly or indirectly referenced. Your application's binary would be the identical size regardless of how the libraries were arranged -- as one big library, or as multiple smaller libraries. Screenshots of Sample Project SettingsXCode 4.0 Project Settings for IOS Simulator Target XCode 4.0 Project Settings for IOS Device Target
Back to Chilkat for IPhone / IOS Library Downloads
(Regarding the usage of the Android logo) Portions of this page are reproduced from work created and shared by Google
and used according to terms described in the Creative Commons
3.0 Attribution License.
|