Missing frameworks after upgrading to Xcode 3.2

安稳与你 提交于 2019-12-10 10:06:32

问题


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.


回答1:


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.




回答2:


I just had the same issue when upgrading to 3.1.2. One thing you will want to do is open your Xcode Project, right-click on the project and Get Info... Then change the Base SDK for All Configurations to (the minimum of) 2.2.1.

When I did this it re-linked all of my RED (missing) Frameworks. Cheers!




回答3:


I know this question is over a year old, but I just had a similar problem and solved it by looking for the missing framework in the trash and putting it back.

I must've deleted it by accident!




回答4:


Possible Solution 1: Clean Your Project Build > Clean All Target

Possible Solution 2: Make Sure Your Device is in Correct Firmware

To debug, read console log.

Hope it helps.



来源:https://stackoverflow.com/questions/1533272/missing-frameworks-after-upgrading-to-xcode-3-2

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