xcode 在 SDWebImageDownloader 中找不到架构 i386 的符号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11900848/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
symbol(s) not found for architecture i386 in SDWebImageDownloader
提问by DevFly
When i'am trying to compile with Xcode i get the following errors:
当我尝试使用 Xcode 进行编译时,出现以下错误:
Undefined symbols for architecture i386:
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCreateImageAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCreateIncremental", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceUpdateData", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in MWPhotoBrowser.o
"_kCGImagePropertyPixelHeight", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_kCGImagePropertyPixelWidth", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There must be a problem with SDWebImage class, which MWPhotoBrowser use. This is really strange and confusing, and I don't know how to fix it.
MWPhotoBrowser 使用的 SDWebImage 类一定有问题。这真的很奇怪和混乱,我不知道如何解决它。
Thanks guys.
谢谢你们。
回答by David H
The problem is most likely that the project is not including the ImageIO framework. Go to your Target -> Build Phases -> Link and verify that in fact you have ImageIO there.
问题很可能是该项目不包括 ImageIO 框架。转到您的目标 -> 构建阶段 -> 链接并验证实际上您在那里有 ImageIO。
回答by Ali Abbas
I think that i have the solution...
我想我有解决方案......
Go to to the targetof your app and on the right, click on the Build Phasestab and in the Compile SourcesSection click on +and add the SDWebImage.m
转到应用程序的目标,然后在右侧单击Build Phases选项卡,然后在Compile Sources部分中单击+并添加SDWebImage.m
Hope that helps !
希望有帮助!