ios - iOS 上的 TouchJSON : dictionaryWithJSONString unrecognized selector sent to class

标签 ios static-libraries touchjson

我有一个包含 TouchJSON 的静态库,我正在尝试使用 dictionaryWithJSONString:error:(在静态库中),但我不断收到标题中显示的运行时异常。

我已经包含了NSDictionary类的头文件,扩展的实现文件肯定在静态库的编译资源列表中。

还有什么问题?

最佳答案

您需要在应用程序目标的build设置中将 -ObjC 添加到 Other Linker Flags

关于ios - iOS 上的 TouchJSON : dictionaryWithJSONString unrecognized selector sent to class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9158790/

相关文章:

testing - 如何测试我的 iOS 应用程序

c - 如何使链接到静态库也链接到其依赖项?

ios - 如何在Xcode中查看静态库的内容?

c++ - 在静态库项目中使用预编译头

iOS:触摸 JSON 并检索数据大小

ios - 使用函数组合时出现编译器错误 : Cannot convert value of type `([Character]) -> String` to expected > argument type `_ -> _`

ios - 未收到 Facebook 请求

ios - 以编程方式添加到导航栏的 UIBarButtonItem 无法调用选择器,而添加到工具栏的按钮却可以