Signing on iOS with a USB Token or Smartcard

Chilkat v10.0.0 is able to create digital signatures for PDF, XmlDSig (XAdES), CAdES, S/MIME, etc. using the HSM (USB token or smartcard) connected to an iPhone.  It’s just a matter of calling the certificate object’s LoadFromSmartcard function.  You’ll also need to add the “com.apple.token” entitlement to your application. Here are some examples: Objective-C Sign PDF using USB Token or Smartcard […]

iPad Simulator: Undefined symbols for architecture x86_64: _readdir$INODE64

Question: We are currently seeing the following error when we run the build on iPad Simulator Undefined symbols for architecture x86_64: “_readdir$INODE64”, referenced from: _ckFileList2::addDirNonRecursive2(int, FileMatchingSpec&, ExtPtrArrayXs&, ProgressMonitor*, LogBase&) in libchilkatIos.a(fileList.o) _ckFindFile::advancePositionLinux(char const*, LogBase&) in libchilkatIos.a(fileList.o) “_opendir$INODE64”, referenced from: _ckFindFile::ffOpenDir2(XString&, LogBase&) in libchilkatIos.a(fileList.o) _ckFileList2::addDirNonRecursive2(int, FileMatchingSpec&, ExtPtrArrayXs&, ProgressMonitor*, LogBase&) in libchilkatIos.a(fileList.o) ld: symbol(s) not found for architecture x86_64 Answer: You can […]

iOS C/C++ Static Library Sizes

There is often alarm at the size of the Chilkat static libraries (.a) for iOS. This should not be of too much concern, because after building your app in Release mode, your app’s executable will NOT grow by the size of the static library. It will only grow by a very small fraction of the total size of the .a […]

Auto-release Pools and Background Threads

Regarding Objective-C programming for MAC OS X and IOS: (from https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAutoreleasePools.html ) Cocoa always expects there to be an autorelease pool available. If a pool is not available, autoreleased objects do not get released and your application leaks memory. If you send an autorelease message when a pool is not available, Cocoa logs a suitable error message. The AppKit and […]

Chilkat Customer App in Apple App Store

Question: Will using Chilkat (for IOS) prevent my app from being accepted into the Apple App Store? Answer: Using the Chilkat libs for IOS does not prevent it from being accepted in the Apple App Store.  For reference, the following app uses Chilkat and was accepted into the app store on 14-March-2012. http://www.bouncemyx.com/

IOS / Mac OS X Link Problems involving symbols such as __ZTVN10__cxxabiv121__vmi_class_type_infoE

If linking produces undefined symbols involving the following: __ZTVN10__cxxabiv121__vmi_class_type_infoE __Znwm __ZdlPv ___gxx_personality_sj0 ___cxa_begin_catch __ZTVN10__cxxabiv120__si_class_type_infoE ___cxa_end_catch __ZdaPv __ZTVN10__cxxabiv117__class_type_infoE etc. It means you’re NOT linking with the C++ runtime libs.  To link with the C++ runtime libs, include an empty source file having a file extension of “.cpp”.   For more information, see the IOS Objective-C linking notes

(IOS) Creating a Chilkat Universal Library

The Chilkat IOS library download provides separate static libs for the device and simulator. The universal lib is not included because (1) it is easy to create from the individual libs, and (2) it reduces the size of the download. To create a single IOS Chilkat universal lib, run the following libtool command from the root of the Chilkat directory […]

IOS Error: Broken pipe … Failed to send ClientHello

The following error can be caused by a firewall blocking the iPAD/iPhone wifi connection: … connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 socketErrno: 32 socketError: Broken pipe Error sending on socket send_size: 58 Failed to send TLS message. Failed to send ClientHello Client handshake failed. Failed to connect to […]