开发者

header search path issue

开发者 https://www.devze.com 2023-03-15 10:47 出处:网络
I just did a pull to a library that I am using in my project. There is a class called RKObjectLoaderTTModel that I would like to use (this is a new class from t开发者_运维技巧he pulled resource). Howe

I just did a pull to a library that I am using in my project. There is a class called RKObjectLoaderTTModel that I would like to use (this is a new class from t开发者_运维技巧he pulled resource). However now it's giving me an:

RKObjectLoaderTTModel undeclared (first use in this function)

Why is this? I even tried including the RKObjectLoaderTTModel.h and it says that it couldn't find it

**UPDATE**

I think I know what the issue is. Inside the library there is a Build folder, and I removed all that file in the Build folder so that it would build from scratch. However, after building I didn't see any class called RKObjectLoaderTTModel inside the build. The question is, why isn't it building the RKObjectLoaderTTModel class? I know it exists in the Code folder


Did you do #import --- for its declaration? this error happen since you are trying to access a unknown object interface.


You need to add the restkit's headers to the header search path. In XCode4 you'll find this setting in project properties->Build Settings->Search Paths->Header Search Paths

0

精彩评论

暂无评论...
验证码 换一张
取 消