所以在模拟器上它完美无缺。没有错误,没有 现在我想把它放在我的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)
有谁能告诉我这个错误意味着什么以及我需要检查什么? :)
由于
对我来说唯一可以理解的是:不支持的文件格式。
答案 0 :(得分:4)
找不到MediaPlayer.framework
我认为是问题所在。您需要在构建设置中更新库头文件搜索路径。我相信它正在你的桌面上寻找它。
您可能需要将其添加到目标,重新链接,或者只是确保它指向正确的位置。