Search code examples
iphonexcodeiphone-sdk-3.0

Missing frameworks after upgrading to Xcode 3.2


I upgraded to Xcode 3.2 and now can't seem to add a number of frameworks, specifically the media player. A number of frameworks do not show up on the "Add Existing Frameworks Sheet".

Per another question I tried setting the "Framework Search Path" to

$(SDKROOT)/Library/System/Frameworks

but that didn't seem to make any difference. The UIKit.framework that is included by default when I create a new project is in

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library/Frameworks

which I would expect. If I navigate to that directory I see the MediaPlayer.framework and can drag and drop it into my project successfully, but can only build and debug for a device-no suprise there, but not ideal.

I uninstalled the dev tools with

mode=all

and reinstalled Xcode, but still no relief. Any help would be greatly appreciated.


Solution

  • Your project was probably configured to use an older SDK that's not included in the Xcode 3.2 + iPhone SDK package. Go to your target's Get Info panel, Build settings, and set the Base SDK to an SDK that's actually installed.

    If you want your app to run on older iPhone OSes, set the iPhone Deployment Target build setting to the earliest OS you want to run on.