“未知类型名称”尽管包含框架
我正在尝试(失败)设置 RestKit,这需要一个 Xcode 项目在另一个项目中引用。 RestKit 框架文件创建一个 NSRegularExpression 并适当地执行 #import
。当我构建时,Xcode 会输出“未知类型名称‘NSRegularExpression’”。
我认为可能存在对 Core Foundation 的循环引用,因为我将其包含在我的项目中,而 RestKit 将其包含在他们的项目中? (请记住,根据安装说明,RestKit 项目在我的内部引用。)
还值得注意:在我的项目构建设置中,我将标头和库搜索路径设置为 RestKit/Build
路径,再次按照他们的说明进行操作。
I'm trying (failing) to setup RestKit, which requires one Xcode project to be referenced inside of another. The RestKit framework file creates an NSRegularExpression and appropriately does a #import <Foundation/Foundation.h>
. When I build, Xcode spits out "Unknown type name 'NSRegularExpression'".
I'm thinking there might be a circular reference to Core Foundation because I include it in my project and RestKit includes it in theirs? (Remember, the RestKit project is referenced inside of mine, as per their install instructions.)
Also worth noting: In my project build settings, I have the Header and Library search paths set to inside the RestKit/Build
path, again, as per their instructions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您正在构建 iOS 项目。如果您的项目中包含 RestKit.framework,请将其删除。 .framework 旨在用于 Mac OS 项目,请添加“libRestKit.a”。
I assume you are building your project for iOS. If you included the RestKit.framework in your project, remove it. The .framework is meant to be used in Mac OS projects, add 'libRestKit.a' instead.
我意识到我正在项目而不是目标上进行构建设置。确保我更改目标而不是项目上的路径和库减轻了我所有的痛苦!
I realized I was making the build settings on the project instead of the target. Making sure I was changing paths and libraries on the target instead of the project alleviated all my woes!