开发者

Xcode project reference problem - [NSObject doesNotRecognizeSelector]

开发者 https://www.devze.com 2022-12-17 07:03 出处:网络
I have开发者_如何学C a working iPhone project that I\'m trying to rearrange on different projects in order to reuse code.

I have开发者_如何学C a working iPhone project that I'm trying to rearrange on different projects in order to reuse code.

I opened a new project that contains all my utility classes and referenced them from another project. One of the utilities I use is the JSON framework.

The project complies OK but at run-time it throws an exception when I'm trying to call the JSONValue method of the string object the framework extend using categories.

The exception is [NSObject doesNotRecognizeSelector]

Anyone knows a solution for that problem? Should I change the project preferences?

Thanks!


Sounds like you need to explicitly add the JSON framework to the current project's frameworks. When you import class files you don't automatically import everything those classes import.


I've managed to solve this issue by removing the references and reference my project again by following the guide on the how to add the Three20 library to an existing project but adding my own utility project. The guide is located in http://three20.info/setup/existing

0

精彩评论

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