0

所以在模拟器上它工作得非常完美。没有错误,什么都没有 现在我想把它放在我的 iPod 上,但我得到了一些未知的错误,我不知道如何修复它们。

-我有MediaPlayer.framework,它包含在我的构建中

这是错误:

ld: warning: ignoring file /Users/NAME/Desktop/XCode/PROJECT/MediaPlayer.framework/MediaPlayer, file was built for unsupported file format which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_MPMoviePlayerViewController", referenced from:
      objc-class-ref in MoviePlayViewController.o
  "_MPMoviePlayerDidEnterFullscreenNotification", referenced from:
      -[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
  "_MPMoviePlayerWillExitFullscreenNotification", referenced from:
      -[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
  "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
      -[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
  "_MPMoviePlayerPlaybackDidFinishReasonUserInfoKey", referenced from:
      -[MoviePlayViewController playbackFinished:] in MoviePlayViewController.o
  "_MPMoviePlayerWillEnterFullscreenNotification", referenced from:
      -[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
  "_MPMoviePlayerDidExitFullscreenNotification", referenced from:
      -[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

谁能告诉我错误的含义以及我必须检查的内容?:)

谢谢

对我来说唯一可以理解的是:不支持的文件格式。

4

1 回答 1

4

它找不到MediaPlayer.framework我认为是问题所在。您需要在构建设置中更新您的库头搜索路径。我相信它正在您的桌面上寻找它。

您可能需要将它添加到您的目标,重新链接它,或者只是确保它指向正确的位置。

于 2012-08-03T19:32:26.397 回答