dyld: Symbol not found: _MPMoviePlayerPlaybackStateDidChangeNotification

别等时光非礼了梦想. 提交于 2019-12-11 07:09:13

问题


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!


回答1:


You need to weak-link the MediaPlayer framework.

Look at this answer to see how to weak-link a framework.



来源:https://stackoverflow.com/questions/2950268/dyld-symbol-not-found-mpmovieplayerplaybackstatedidchangenotification

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!