humblePilgrim
humblePilgrim

Reputation: 1806

Error while using alassestsLibrary

Im trying to use ALAssetsLibrary to load images fromthe photo album of iphone/ipad.Im getting the following warning while doing build and archive.

ld: warning: in /Users/mark/Projects/Speech_Recognition/Protoype_Test1/AssetsLibrary.framework/AssetsLibrary, file was built for i386 which is not the architecture being linked (armv7)

Also i get the error

  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
  objc-class-ref-to-ALAssetsLibrary in PhotoPuller.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status

There is no error while running in simulator , but there im not getting any images returned to me

I have ran out of ideas about what to do

Upvotes: 5

Views: 3831

Answers (2)

Vineesh TP
Vineesh TP

Reputation: 7943

please add the these two frame worksin to your project

<AssetsLibrary/AssetsLibrary.h>
 <AVFoundation/AVFoundation.h>

Upvotes: 0

Ben Stiglitz
Ben Stiglitz

Reputation: 4004

You haven't linked to the AssetsLibrary framework or your SDK setting isn't what you think it is.

Upvotes: 15

Related Questions