1

我已将 iOS 代理添加到 XCode 4.5 中的项目中。构建失败并出现以下错误:

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 代理的构建可以正常构建。

谢谢

4

2 回答 2

1

听起来你需要链接MediaPlayer.framework

于 2012-12-21T22:08:09.207 回答
1

如果您尚未使用 MediaPlayer 框架,则可能不需要链接 libMonkeyTalkMediaPlayer-1.0.24.a 库 - 您应该只需要 libMonkeyTalk-1.0.24.a 库。

您可能已经知道,链接 libMonkeyTalk-1.0.xx.a 库的基本说明在这里

于 2012-12-22T17:13:40.853 回答