I just ran into this problem and solved it.
The problem is that when you drag the xcode SDWebImage project into your project, Xcode only creates a link pointing to the files you need. When you are in debug mode, this is great, he knows where to find this file. However, when you want to archive it (packaging everything to be autonomous), it could not find it from your search path.
Although you added $ (BUILT_PRODUCTS_DIR) to your search path, but if the files you actually downloaded are not physically located in your $ (BUILT_PRODUCTS_DIR), then Xcode will not find them. This was a problem for me, since the SDWebImage files were still sitting in my download folder.
What do you want to do:
1. Move the SDWebImage folders to a place where you do not accidentally delete it. Please note that once you have done this, the SDWebImage project file will turn red, as its physical location moves. And he connected to the fact that I could not delete this link in Xcode, what I ended up added this file again (choosing from where I just move it). You will receive a red SDWebImage.xcodeproj in your project navigator, which you cannot delete. This is very annoying, but it will not affect anything. 2. If the location where you are moving the SDWebImage material is not in your $ (BUILT_PRODUCTS_DIR), then you either move it inside $ (BUILT_PRODUCTS_DIR), or like me, add the path to Target โ Assembly Settings โ Search Paths โ Title Search Paths user.
Archive, and it should work now.
lionel Mar 15 '12 at 8:22 2012-03-15 08:22
source share