Using iphone-exif for EXIF data
-
01-06-2021 - |
Frage
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.
Lösung
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..
Andere Tipps
When you download iPhone-exif your will find two precompiles libraries.
- Release-iphoneos/libiphone-exif.a
- Release-simulator-iphonesimulator/libiphone-exif.a
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.
- Open terminal
- Cd to your iphone-ex download folder (
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
- add the file "
libiphone-exif-universal.a
" to your Xcode project
But 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!)