带有 Xcode 4.5 的 RESTkit:libRestkit.a 始终为红色 [英] RESTkit with Xcode 4.5: libRestkit.a is always red

查看:55
本文介绍了带有 Xcode 4.5 的 RESTkit:libRestkit.a 始终为红色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Xcode 的新手,我正在尝试将 RESTkit 添加到我正在处理的 Xcode 项目中.我按照这里的说明 https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x 虔诚地并且仍然一直以来,RestKit 静态库 libRestKit.a 始终为红色,表示该文件不存在.我尝试查找该文件并手动添加它,但它不存在.当我通过 github(终端)安装 RestKit 或从他们的网站下载它时,都会发生这种情况.

I'm a newbie to Xcode and I am trying to add RESTkit to an Xcode project I'm working on. I followed the instructions here https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x religiously and still all the time the RestKit static library libRestKit.a is always red indicating the file is not there. I tried looking for the file and adding it manually but it's not there. This happens both when I install RestKit via github (terminal) or when I download it from their website.

请帮忙

推荐答案

虽然这纯粹是出于审美目的,但框架和产品的红色标签是 Xcode 的一个常见问题.它们被标记为红色,因为该项目引用的文件不存在.

Although this is purely aesthetic, the red labeling of frameworks and products is a common issue with Xcode. They are marked red because the file that this item refers to does not exist.

查看右侧 Xcode 窗口中的 File Inspector.在 Identity and Type 下方显示 Full Path.这指向一个可能不存在或至少不包含 libRestKit.a 的构建文件夹.

Take a look at the File Inspector in the Xcode window at the right. Below Identity and Type it says Full Path. This points to a build folder that probably doesn't exist or at least does not contain libRestKit.a.

现在将 Location 设置为 Relative to Group.通常,这会解决问题,因为它现在会在正确的构建文件夹中查找,同时考虑目标和活动架构.

Now set the Location to Relative to Group. Usually, this fixes the problem, because it will now look in the correct build folder, taking into account the target and active schema.

这篇关于带有 Xcode 4.5 的 RESTkit:libRestkit.a 始终为红色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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