** Release ** Unilib Creator (beta)

ulciconUnilib is now released. This is a small project I have been working in my spare time (which is very limited nowadays). It was created to facilitate operations done to and with dynamic and static libraries on iOS and OS X.

More importantly, it allows you to build FAT static libraries on OS X and iOS, saving you the trouble to put #ifdefs into your code to link against two types of library, depending on the platform you are buildinf for (arm or i386).

Yes, it’s geeky, but I have found it useful. The UI can certainly be improved, and it will be in the future, until this app is no longer in beta stage, and will be distributed into the Mac Application Store.

You can view more information by clicking on this link.

UniLib Creator (beta)

Universal Library Creator (Unilib) is an small application created in my spare time to facilitate operations done on static and dynamic libraries on iOS and OS X.

It combines some pretty neat stuff I wanted to try for so long using system services. I began writing some code for system services some time ago, and this is a project I made for myself, and thing it will help others.

It has helped me in many occasions, especially with Xcode 4. On iOS, the static libraries produced are for the actual device or the iPhone. It’s never for both. I don’t know why Apple hasn’t included this functionality in XCode 4, since it was already included in Xcode 3. All I know, is that I had found it hard to distribute my static libraries without giving the code, since the user would have to link them against the device or the simulator depending on the test environment, never both.

Some features:

  • Combine static FAT or plain libraries to make FAT static libraries for both OS X and iPhone
  • Obtain info about a static library like the architectures in it, and the object files in it
  • Exctract specific applications from a library.
  • Really UGLY user interface for the time being. Will certainly be improved.

Unilib is currently in bleeding edge beta, with only those basic functions implemented. It will be updated constantly, until it reaches to a point where it will be a commercial application for the Mac Application Store. So far it is free for use.

Requires Lion and an Intel 64-bit platform.

You can download the application here. It also includes some basic auto-update mechanism. Will add more features in future releases.

PCRE for iPhone

Lately, I’ve been working on a project requiring heavy use of regular expressions on Cocoa. Foundation frameworks do not offer built in support for regular expressions. Instead, they do heavy work using NSScanner, and NSPredicate classes.

 A framework was created to solve this problem, called RegexKitLite, but it’s heavy use of and linking to Apple’s internal ICU framework, makes it very dangerous to App Store Rejection, when talking about applications for iPhone.

So, I’ve been searching for something like PCRE for iPhone, and I couldn’t find it anywhere. Therefore, I downloaded, and compiled the famous and standard PCRE library for  the iPhone as a dylib. I know that for some of you this can be a difficult process, so I will describe the steps here.

Continue reading