SDWebImage/UIImageView+WebCache.h File Not Found Error

匿名 (未验证) 提交于 2019-12-03 08:33:39

问题:

I Integrated SDWebImage in my project , its work like a charm in my mac system but while i am sending my project to other mac system its showing error like SDWebImage/UIImageView+WebCache.h File Not Found but the same project working in my system .some time i i am also getting the same error in my mac system after running the project continuously for 2 to 3 days

please give me the some suggestions to solve my problem

Thanks in Advance

回答1:

its only because the added SDWebimaege in your project its only reference so add folder of SDWebimages demo project in your project folder

and i am configure SDwebimage like this way:-

  • you need to first right click on your project name:->add files to yourProject-> selected SDWebImageproject and add them

NOTE:- please do not check copy option

  • now click on project name in Your xcode going to build phases:->target dependencies:-> click on + button and add SDWebimage ARC

  • now select link binary with library click + button add libSDWebimageARC.a and again click + and add imageIO.framework and also add libxml2.dylib thats it

  • going to Build setting:->other link flag:-> add -ObjC

  • and header search path add this three item

    1 /usr/include/libxml2

    2 "$(OBJROOT)/UninstalledProducts/include"

    3 "$(TARGET_BUILD_DIR)/usr/local/lib/include"

now build and run its working like smoothly cheers.... :)



回答2:

just try heading this in your frameworks path as well:

$(SDKROOT)/Developer/Library/Frameworks



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!