2012-12-21 32 views
1

我已將iOS代理添加到XCode 4.5中的項目。生成失敗,出現以下錯誤:將MonkeyTalk iOS代理添加到XCode中的目標版本後,項目構建失敗

Undefined symbols for architecture i386: 
"_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from: 
+[MPMovieView(MTReady) load] in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPFullScreenTransportControls", referenced from: 
l_OBJC_$_CATEGORY_MPFullScreenTransportControls_$_MTDisable in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPFullScreenVideoOverlay", referenced from: 
l_OBJC_$_CATEGORY_MPFullScreenVideoOverlay_$_MTDisable in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPMovieView", referenced from: 
anon in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
l_OBJC_$_CATEGORY_MPMovieView_$_MTReady in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPSwipableView", referenced from: 
l_OBJC_$_CATEGORY_MPSwipableView_$_MTDisable in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPTransportButton", referenced from: 
l_OBJC_$_CATEGORY_MPTransportButton_$_MTDisable in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
"_OBJC_CLASS_$_MPVideoBackgroundView", referenced from: 
l_OBJC_$_CATEGORY_MPVideoBackgroundView_$_MTDisable in libMonkeyTalkMediaPlayer-1.0.24.a(MPMovieView+MTReady.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

有人可以幫我。沒有iOS代理的版本沒有問題。

感謝

+0

聽起來就像你沒有添加的依賴框架。 – rooftop

回答

1

聽起來像是你需要MediaPlayer.framework鏈接。

+0

謝謝先生。那是票。 –

1

如果你不使用MediaPlayer的框架已經,你可能不需要在libMonkeyTalkMediaPlayer-1.0.24.a庫鏈接 - 你應該只需要libMonkeyTalk-1.0.24.a庫。

正如您可能已經知道的,鏈接libMonkeyTalk-1.0.xx.a庫的基本說明是here

相關問題