I am using the SDWebImage open source project for loading images asynchronously. I can build & run for the simulator as well as for my local device. However, when i try to build for distribution (i.e. Archive), the compiler doesn't seem to understand what the header file is:
import "UIImageView+WebCache.h" (no such file or directory).
I pretty much followed the instructions, with relative ease, described here on github.com/rs/SDWebImage.
I knew things were going way too smoothily/easily to be true. Oddly, i've never really faced an issue that is exclusive to Archiving. Anybody tried Archiving with SDWebImage before?
* Updated * I updated based on comment below. Now i am getting the following error while Archive building:
arm-apple-darwin10-llvm-gcc-4.2: Poll/BuildProductsPath/Release-iphoneos/libSDWebImage.a: No such file or directory Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
The strange thing is that i have the sdwebimage.a file in my project (there's actually 2, one that i copied and included, and the 2nd one from the SDWEbImage project itself).
* Update 2 * Upon further investigation, my SDWebImage project is NOT getting built when i Archive (the .a file is red). But any other build type works fine. I looked everywhere and it seems like the SDWebImage project has the distribution configurations. Not sure what else could be the issue here.