Reputation: 647
I want to use iphone-exif library for EXIF data in my proj. But i dont know if i done any mistake or not it gives error like
Undefined symbols for architecture i386: "_OBJC_CLASS_$_EXFJpeg", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386
please give some solution for that. Thanks in advance for ur answers.
Upvotes: 2
Views: 2938
Reputation: 15147
Instead of using that library Please go through this Solution
Actually I had the same problem so I had created it for myself for getting EXIF info purpose..
Upvotes: 3
Reputation: 10005
When you download iPhone-exif your will find two precompiles libraries.
Depending on where you'd like to run your app, you need to link against the right file. You probably added Release-iphoneos/libiphone-exif.a to your project and then you tried to run in on the Simulator (i386 architecture!).
Easiest way: Create a universal library of the both above.
cd iphone-exif-0-9
)lipo -arch i386 Release-simulator-iphonesimulator/libiphone-exif.a -arch armv6 Release-iphoneos/libiphone-exif.a -create -output libiphone-exif-universal.a
libiphone-exif-universal.a
" to your Xcode projectBut i've just found out that there is a armv7 build missing. If you'd like to place your app on the appstore you once need also to build the library also for armv7 (out of the sources!)
Upvotes: 3