MediaPlayer.framework issue

Discussion in 'iOS Programming' started by milanjansari, Jul 8, 2009.

  1. milanjansari macrumors newbie

    Jul 8, 2009

    i have implement Access Music Library in my app.

    i have change in info.plist

    1) set Base sdk iPhone Device 3.0 and iPhone OS Deployment Target iphone 2.0 under Target info
    2) set Header Search Paths "/usr/include/libxml2"
    3) set Library Search Paths "lib"
    4) set Build Active Architecture Only "YES"
    5) add libxml2.2.dylib in Framework folder.

    i have also update this things in Project info.
    When I'm runing the app on the 3.0 beta 5 device, all is fine and the MPMediaQuery calls work.

    But when I'm runing the app on my 2.2.1 device, I've got the following error:

    dyld: Symbol not found: _OBJC_CLASS_$_MPMediaQuery
    Referenced from: /var/mobile/Applications/EB544E0A-AE30-4DC8-BE9B-37B4F7C56EE2/

    Expected in: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer

    anybody know above the problem?

    Thank you
  2. svenito macrumors member

    Jul 10, 2008
    The media library framework is only available from 3.0 onwards.

    hence why you are getting the error under 2.2.1

Share This Page