Flurry广告库未定义的架构armv7符号:

时间:2012-08-08 16:48:25

标签: flurry armv7

我想在即将推出的应用程序中使用Flurry广告。我已经安装了分析软件包,并且喜欢跟踪用户和事件是多么容易。

但是,我在使用我找不到答案的新4.0.1 SDK实施广告时遇到错误。每次我尝试构建我的Xcode 4.2项目时,都会收到以下错误消息:

Undefined symbols for architecture armv7:
  "_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)
  "_MPMoviePlayerDidEnterFullscreenNotification", referenced from:
  -[FlurryVideoPlayer init] 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)
  "_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
  objc-class-ref in libFlurryAds.a(FlurryVideoPlayer.o)
  "_MPMoviePlayerWillEnterFullscreenNotification", referenced from:
  -[FlurryVideoPlayer init] in libFlurryAds.a(FlurryVideoPlayer.o)
  "_MPMoviePlayerContentPreloadDidFinishNotification", referenced from:
  -[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
  -[FlurryVideoPlayer moviePreloadDidFinish:] in libFlurryAds.a(FlurryVideoPlayer.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

显然我的FlurryAds.a库出了问题。我已经多次尝试按照Flurry的广告说明来写信,但尽管我付出了最大的努力,我仍然有这个错误。我的库在构建阶段正确链接,我已尽力实现此处描述的修复Undefined symbols for architecture armv7,但无济于事。

有什么想法吗?非常感谢你的帮助。

1 个答案:

答案 0 :(得分:5)

我对XCode 5.1也有同样的错误

我已解决此问题,以便在项目中关联MediaPlayer.frameworkAdSupport.framework