dyld:找不到符号:_MPMoviePlayerPlaybackStateDidChangeNotification
我正在构建使用 MPMoviePlayerViewController 来播放视频的通用应用程序。观察通知“MPMoviePlayerPlaybackStateDidChangeNotification”。该应用程序在 iPad 模拟器中成功运行,但在 iPhone 中运行时抛出以下错误:-
dyld:未找到符号:_MPMoviePlayerPlaybackStateDidChangeNotification 引用自:/Users/veer/Library/Application Support/iPhone Simulator/3.0/Applications/27BC67AA-72D1-4DD2-9146-0126FCC8E90C/test.app/eReader 预计位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/MediaPlayer.framework/MediaPlayer 在 /Users/veer/Library/Application Support/iPhone Simulator/3.0/Applications/27BC67AA-72D1-4DD2-9146-0126FCC8E90C/test.app/eReader 中
有人遇到同样的问题并得到解决吗?
提前致谢!
I am building universal app which uses MPMoviePlayerViewController to play the video. Observing notification "MPMoviePlayerPlaybackStateDidChangeNotification". The app successfully runs in iPad simulator but throws following error when it runs in iPhone:-
dyld: Symbol not found: _MPMoviePlayerPlaybackStateDidChangeNotification
Referenced from: /Users/veer/Library/Application Support/iPhone Simulator/3.0/Applications/27BC67AA-72D1-4DD2-9146-0126FCC8E90C/test.app/eReader
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
in /Users/veer/Library/Application Support/iPhone Simulator/3.0/Applications/27BC67AA-72D1-4DD2-9146-0126FCC8E90C/test.app/eReader
Is any one having the same issue and got resolved?
Thanks in Advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要对 MediaPlayer 框架进行弱链接。
看看这个答案了解如何对框架进行弱链接。
You need to weak-link the MediaPlayer framework.
Look at this answer to see how to weak-link a framework.