RESTkit with Xcode 4.5: libRestkit.a is always red

三世轮回 提交于 2019-12-08 05:33:36

问题


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.

Help please


回答1:


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.

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.

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.




回答2:


For me it worked when i changed to "Absolue Path" and i dint added Link Libraries & target Dependency



来源:https://stackoverflow.com/questions/12634310/restkit-with-xcode-4-5-librestkit-a-is-always-red

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