找不到SDWebImage/UIImageView + WebCache.h文件错误 [英] SDWebImage/UIImageView+WebCache.h File Not Found Error

查看:171
本文介绍了找不到SDWebImage/UIImageView + WebCache.h文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将SDWebImage集成到了我的项目中,它的工作在我的mac系统中像一个魅力,但是当我将我的项目发送到其他mac系统时,它显示了类似SDWebImage/UIImageView + WebCache.h的显示错误,但未在同一项目中工作我的系统.一段时间后,连续运行项目2至3天后,我的mac系统中也出现了相同的错误

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

我尝试了所有方法,例如将路径更改为project> target> Build Settings>'header搜索路径> $(SOURCE_ROOT)/SDWebImage

i tried all the ways like changing path to  project>target>Build Settings>'header search paths>$(SOURCE_ROOT)/SDWebImage

还尝试了$(BUILT_PRODUCTS_DIR)-在标题搜索路径中,

also tried $(BUILT_PRODUCTS_DIR) -  In header search paths,

请给我一些解决我的问题的建议

please give me the some suggestions to solve my problem

预先感谢

推荐答案

其唯一原因是,在您的项目中添加的SDWebimaege是其唯一参考,因此请在项目文件夹中添加SDWebimages演示项目文件夹

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

我以这种方式配置SDwebimage:-

and i am configure SDwebimage like this way:-

  • 您需要首先右键单击您的项目名称:->将文件添加到yourProject->选定的SDWebImageproject并将其添加

注意:-请不要选中复制选项

NOTE:- please do not check copy option

  • 现在在您的xcode中单击项目名称,以建立阶段:->目标依赖项:->单击+按钮并添加SDWebimage ARC

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

现在选择带有库的链接二进制文件,单击+按钮添加libSDWebimageARC.a,然后再次单击+添加imageIO.framework并添加libxml2.dylib就是这样

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

进入构建设置:->其他链接标志:->添加-ObjC

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

和标头搜索路径添加这三项

and header search path add this three item

1/usr/include/libxml2

1 /usr/include/libxml2

2"$(OBJROOT)/UninstalledProducts/include"

2 "$(OBJROOT)/UninstalledProducts/include"

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

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

现在像平稳的欢呼声一样构建并运行其工作....:)

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

这篇关于找不到SDWebImage/UIImageView + WebCache.h文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆