0

I am working on universal project(iPhone/iPad), in which the code that I used is same on iphone and ipad. The code is working well in iphone and not working in iPad.

It returns the following error.

dyld: Library not loaded: /System/Library/Frameworks/AssetsLibrary.framework/AssetsLibrary Referenced from: /Users/mac/Library/Application Support/iPhone Simulator/3.2/Applications/AFE91FFD-27A4-41A9-B5AF-C4336F10A9F3/Move On Inspirational Quotes.app/Move On Inspirational Quotes Reason: image not found

Can anyone please tell me how to solve this error.

Toon Krijthe
  • 52,876
  • 38
  • 145
  • 202
iPhone_suren
  • 181
  • 1
  • 3
  • 13
  • 1
    Check this link , may be it will be of help to you. http://stackoverflow.com/questions/6373730/how-to-add-image-from-photo-library-or-camera-to-my-ipad-application – IronManGill Sep 24 '12 at 06:45
  • Are you using the UIPopoverviewController? – Nimit Parekh Sep 24 '12 at 06:47
  • @neonsamuel I am not using UIPopoverviewController. – iPhone_suren Sep 24 '12 at 06:50
  • @neonsamuel I don't see how it would even be relevant. The problem is that the iPad runs a version of iOS that doesn't have the AssetsLibrary framework (at least not among the public ones). –  Sep 24 '12 at 06:51
  • @Gill that question is also completely irrelevant. These "images" are not pictures. These the memory images of the used dynamic libraries that are searched for symbols by the dynamic loader upon application startup. –  Sep 24 '12 at 06:53
  • @neonsamuel my ipad simulator is 3.2, does Assets library work on this target – iPhone_suren Sep 24 '12 at 06:54
  • @H2CO3 the error corresponds to the question so maybe... – IronManGill Sep 24 '12 at 06:54
  • @iPhone_suren nope, AssetsLibrary is iOS 4.0+. –  Sep 24 '12 at 06:55
  • @Gill That error **does not correspond to this question in any way.** The OP of the question you linked gets an `unrecognized selector` error due to failing to properly present the UIPopoverController. Here the OP experiences crashes caused by the dynamic linker. These are two completely different errors. –  Sep 24 '12 at 06:57
  • @H2CO3 hmmm i get your point .... – IronManGill Sep 24 '12 at 06:58
  • Thank you to all. hope this works on ios4.0 – iPhone_suren Sep 24 '12 at 07:04

1 Answers1

6

As the AssetsLibrary framework is present only on iOS 4.0 and later, trying to run an application that uses it on earlier (i. e. 3.XX) iOSes will result in a crash. Either try eliminating the use of this framework from your application, or move on and support iOS 4.0 and later only.