我想尝试Flurry分析,但不想尝试任何广告或视频内容。这是我刚刚从他们的网站上抓取的最新版本4.0.1。
我在将目录添加到项目后得到了这个:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
objc-class-ref in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerWillEnterFullscreenNotification", referenced from:
-[FlurryVideoPlayer init] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerDidEnterFullscreenNotification", referenced from:
-[FlurryVideoPlayer init] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerLoadStateDidChangeNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePlayerLoadStateChanged:] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerContentPreloadDidFinishNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePreloadDidFinish:] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePreloadDidFinish:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer stopMovie] in libFlurryAds.a(FlurryVideoPlayer.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:2)
在适用于iOS的Flurry SDK v4.x中,可以仅集成Google Analytics功能。请参考以下文件:SDK文件夹中的Flurry / Flurry.h,Flurry / libFlurry.a和Analytics-README.pdf。 Flurry Ads还有其他文件夹,只有在您的应用中显示Flurry广告时才需要这些文件夹。
答案 1 :(得分:1)
然后你需要从你的项目中删除所有的flurry库(例如:libFlurryAds.a),然后离开libFlurryAnalitics.a
答案 2 :(得分:0)
我明白了 - Flurry API发生了变化,因此您只需发信号FlurryAnalytics
,而不是发信号Flurry
。这在.h
文件的注释中有记录,但几乎没有。
我还必须从下载的API(4.0.1)中删除FlurryAds
目录,因为我没有安装其依赖项。