我正在整合flurry广告。之前广告正在xcode 5.0.0中使用flurry sdk 4.3.5 ..
但是当我将我的xcode更新为5.1.0并加速到5.0.0时,广告无效并显示错误,
Undefined symbols for architecture i386:
"_crc32", referenced from:
_unzReadCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipWriteInFileInZip in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
-[ZipArchive addFileToZip:newname:] in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_deflate", referenced from:
_zipWriteInFileInZip in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipCloseFileInZipRaw in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_deflateEnd", referenced from:
_zipCloseFileInZipRaw in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"deflateInit2", referenced from:
_zipOpenNewFileInZip3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_get_crc_table", referenced from:
_unzOpenCurrentFile3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipOpenNewFileInZip3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_inflate", referenced from:
_unzReadCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_inflateEnd", referenced from:
_unzCloseCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"inflateInit2", referenced from:
_unzOpenCurrentFile3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我解决了这个错误。请帮忙。
此外,我已经检查过flurry lib是否在框架中显示,还是在bundle资源中复制。
答案 0 :(得分:11)
解决了错误,在目标设置选项卡中将“libz.dylib”库添加到框架中。
目标设定 - >构建阶段 - >将Binary链接到库。
答案 1 :(得分:1)
问题在于您缺少flurryads作为依赖项所需的框架。确保您拥有' SystemConfiguration' UIKit','安全'和' CoreGraphics'加入。