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.

  • http://profiles.google.com/gary.mangum Gary Mangum

    Thanks…this solved the problem that I was seeing!

  • http://profiles.google.com/gary.mangum Gary Mangum

    Thanks…this solved the problem that I was seeing!