Error using alassestsLibrary

I am trying to use ALAssetsLibrary to load images from the photo album iphone / ipad.Im receives the following warning when assembling and archiving.

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)

I also get an 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 working in the simulator, but there I do not receive any images returned to me

I'm out of ideas on what to do

+5
source share
2 answers

You are not attached to the AssetsLibrary structure, or your SDK parameter is not what you think.

+15
source

add these two frames to the project

<AssetsLibrary/AssetsLibrary.h>
 <AVFoundation/AVFoundation.h>
0
source

All Articles