dyld: Library not loaded

I’m trying to run iPhone software which used AssetsLibrary framework. It compiles & works fine for iOS4.0, but the software is supposed to support OS 3.0. I put all the correct if to make sure it launch the alternative version if it is running in the OS 3.0.

When I run it on an actual 3.0 device, I got this error :
dyld: Library not loaded: /System/Library/Frameworks/AssetsLibrary.framework/AssetsLibrary
Reason: image not found

it turns out it can be fixed by changed the Linked Libraries type from “required” to “weak”. You can do it by right clicking the target, go to Target Info | General | Linked Libraries, and then change the Type to weak.

That’s how I solve it. Hope it can solve other’s problem.

Posted in post | Tagged | 2 Comments

zoomit is in Engadget also : http://www….

zoomit is in Engadget also : http://www.engadget.com/2010/02/08/zoommediaplus-zoomit-is-the-iphones-long-overdue-sd-card-reade/

Posted in link | 1 Comment

zoomIt is in Gizmodo : http://gizmodo.co…

zoomIt is in Gizmodo : http://gizmodo.com/5466863/read-sd-cards-on-your-iphone-with-zoomit

Posted in link | Tagged | Leave a comment

zoomIt Product is in iLounge : http://ww…

zoomIt Product is in iLounge : http://www.ilounge.com/index.php/news/comments/zoomit-brings-sd-card-access-to-iphone-ipod-touch/

Posted in link | Tagged | Leave a comment

zoomIt – iPhone SD Card Reader – ready for pre order

zoomIt available for pre-order. You can get it from here : http://www.zoomitonline.com/

Posted in post | Leave a comment

Almost ready to launch our product : zoomIt SD Card reader for iPhone !

My company zoommediaplus – http://zoommediaplus.com – almost ready to launch our main product, zoomIt sd card reader for iPhone, iPod Touch, (and hopefully iPad). I like our product so much; it is quite useful. I’m very excited about it ! ..

With this accessory, now you can bring your music or video in your sd card, you don’t have to put it on the phone using itunes. You can share it with your friends also :-)

I am working mostly on the apple iphone sides. The main app to support the accessory has been launched to the AppStore couple weeks ago. You can download it here for free : http://itunes.apple.com/us/app/zoomit/id343057034?mt=8. But of course you won’t see the full potential until you have the zoomIt accessory.

I am also working on other apps to further enhance & simplify the usage of our product. An app specially designed to play music, another to handle photo, and yet another one to play video. Just keep your eye open for updates.

Posted in post | Tagged | Leave a comment

Redirect IP address to localhost in os x

Use this command to redirect ip address to localhost in os x. Not sure if it will work in other os.

ifconfig lo0 alias 10.0.0.1 will redirect 10.0.0.1 to the localhost / loopback adapter

ifconfig lo0 -alias 10.0.0.1 will remove it

Posted in idea / rant | Leave a comment

NSLog replacement

copied from http://iphoneincubator.com/blog/debugging/the-evolution-of-a-replacement-for-nslog

basically just put these code into your precompiled header file:

// DLog is almost a drop-in replacement for NSLog
// DLog();
// DLog(@"here");
// DLog(@"value: %d", x);
// Unfortunately this doesn't work DLog(aStringVariable); you have to do this instead DLog(@"%@", aStringVariable);
#ifdef DEBUG
#	define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#	define DLog(...)
#endif

// ALog always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);

you might need to add this flags to the project:
OTHER_CFLAGS = -DDEBUG
GCC_PREFIX_HEADER = YourProject_Prefix.pch # this is needed especially for static library

Posted in idea / rant | Leave a comment

Trace32 script to print stack frame to a file

A very simple scripts, but took me a while to found it. Basically in Trace32, I need to capture stack trace whenever a certain memory location is being written. I got tired of doing it manually, and have to copy & paste the stack trace everytime. Searching it in Google didn’t give me a clue, so I read through Trace32 manual to find out how to do it.

Finally, I found the easy way to do it, here is the script / command in its glory:

# printer.clipboard -> to redirect to clipboard
# use this to redirect to file
printer.open "c:/kusno_trace_1.txt"

# command to be run inserted in the  the breakpoint
wp.var.Frame

# close printer after we're done
printer.close

The trick here is using printer to print the content of the var.Frame…

Tags:

Posted in software / tools | 2 Comments

Adding Custom Compilation Flags in XCode

I just found out how to add additional compilation Flags in XCode. It may looks stupid, but I couldn’t find it anywhere couple days ago :( .

Basically just do “Get Info” on a project / target, and add user defined settings with this value :

OTHER_CFLAGS and set the additional compilation flags : -DTARGET_OS_X -DMUDI_DEBUG

edit:

another additional flags : GCC_PREFIX_HEADER to specify your precompiled header – useful for static library

Tags:

Posted in software / tools | Leave a comment