升级到Xcode 3.2后缺少框架 [英] Missing frameworks after upgrading to Xcode 3.2
问题描述
我已升级到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
但是这似乎没有任何区别.创建新项目时默认包含的UIKit.framework位于
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
这是我所期望的.如果导航到该目录,则可以看到MediaPlayer.framework,可以将其成功拖放到我的项目中,但是只能在设备上构建和调试-在那里没有任何惊喜,但并不理想.
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.
我使用卸载了开发工具
mode=all
并重新安装了Xcode,但仍然没有缓解.任何帮助将不胜感激.
and reinstalled Xcode, but still no relief. Any help would be greatly appreciated.
推荐答案
您的项目可能已配置为使用Xcode 3.2 + iPhone SDK包中未包含的较旧的SDK.转到目标的获取信息"面板的构建"设置,然后将基本SDK"设置为实际安装的SDK.
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.
如果您希望您的应用程序在较旧的iPhone操作系统上运行,请将"iPhone部署目标"构建设置设置为要在其上最早运行的操作系统.
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.
这篇关于升级到Xcode 3.2后缺少框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!