Xcode中的框架是“红色” [英] Frameworks are 'red' in Xcode

查看:836
本文介绍了Xcode中的框架是“红色”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一个由Apple员工开发的项目(他在斯坦福大学教授iPhone应用程序开发课程)。奇怪的是,框架是红色的。

I downloaded a project developed by Apple employees ( who taught course at Stanford on iPhone application development). Strangely , the frameworks are red.

http:// img。 skitch.com/20100730-kcjun96mp2pxnpg7w3x6njw57.jpg

我试图找到coreGraphics.framework和UIKit.framework再次添加它们但我也找不到它们。

I tried to locate coreGraphics.framework and UIKit.framework to add them again but i couldnt find them either.

Taimur

推荐答案

红色文字表示实际文件是而不是项目对他们的路径。

The red text indicates that the actual files are not at the path that the project has for them.

获取有关框架的信息,并在常规标签下查看。第一部分显示了框架包本身的名称和路径。系统提供的框架出现问题的最常见原因是路径类型已更改为破坏路径的内容。默认设置为相对于当前SDK 。更改路径,直到获得导致实际框架的路径。

Get info on the framework and look under the General tab. The first section shows the name and path of the framework bundle itself. The most common cause of a problem with system supplied frameworks is that the path type has been changed to something that breaks the path. The default setting is Relative to Current SDK. Change the path until you get one that leads to the actual framework.

如果您在自定义位置安装了开发人员工具,则更有可能遇到此问题。如果您从具有非标准设置的人复制项目,您也可以遇到它。

If you have the developer tools installed in a custom location, you are more likely to run into this problem. If you copy a project from someone with non-standard settings, you can encounter it as well.

这篇关于Xcode中的框架是“红色”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆