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!)