4
我想在即將到來的應用程序中使用亂舞廣告。我已經安裝了分析軟件包,並且非常喜歡跟蹤用戶和事件的過程。亂舞廣告庫爲建築學armv7未定義的符號:
但是,我在使用新的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庫。我已經嘗試了幾次來遵循這封信的亂七八糟的廣告指示,但儘管我盡了最大的努力,但仍然有這個錯誤。我的庫在構建階段內正確鏈接,我已盡了最大努力來實施此處描述的修補程序Undefined symbols for architecture armv7,但無濟於事。
任何想法?非常感謝你的幫助。
嘗試添加媒體播放器框架到您的項目。 – spacemanaki 2012-08-09 00:55:13
是的。非常感謝你的幫助! – JacobZ 2012-08-09 16:48:57