简体   繁体   English

LLVM GCC 4.2升级XCode 4.0后出现错误

[英]LLVM GCC 4.2 Error(s) after upgrading XCode 4.0

I am using Twitter-OAuth framework found Here . 我使用Twitter的发现-的OAuth框架这里 Everything was working great until a few days ago when I upgraded XCode. 几天前,当我升级XCode时,一切都很顺利。 Now when I try to compile this application, I get errors in the Twitter-OAuth files that say 现在,当我尝试编译此应用程序时,我在Twitter-OAuth文件中出现错误

no super class declared in @interface for 'MGTwitterXMLParser' @interface中没有为'MGTwitterXMLParser'声明的超类

and Warnings that say 和警告说

'MGTwitterXMLParser' may not respond to '+alloc' 'MGTwitterXMLParser'可能无法响应'+ alloc'

If anyone knows what is going on here, I would very much appreciate some help. 如果有人知道这里发生了什么,我会非常感谢一些帮助。

Apparently the issue arose because iOS SDK 4.0 feels the need to add all sorts of entries to the Header Search Paths, Framework Search Paths and Library Search Paths in the Build Settings. 显然问题出现了,因为iOS SDK 4.0感觉需要将各种条目添加到构建设置中的页眉搜索路径,框架搜索路径和库搜索路径。 I cleaned those fields out and things started working. 我把那些田地清理干净,事情就开始了。

Chris, I don't use MGTwitterXMLParser but the first error message in your question suggest the compiler is expecting the interface declaration of MGTwitterXMLParser class to have a parent. Chris,我不使用MGTwitterXMLParser,但是你的问题中的第一条错误消息表明编译器期望MGTwitterXMLParser类的接口声明具有父级。 Without that, the compiler will treat MGTwitterXMLParser as a root class like NSObject. 如果没有这个,编译器会将MGTwitterXMLParser视为NSObject之类的根类。

Does MGTwitterXMLParser.h contain something that looks like MGTwitterXMLParser.h是否包含类似的内容

@interface MGTwitterXMLParser:NSObject 

The second error message in your question could be linked to the first as the compiler isn't able to traverse the inheritance tree of MGTwitterXMLParser to locate its the declaration of +(id)alloc. 您的问题中的第二条错误消息可能链接到第一条,因为编译器无法遍历MGTwitterXMLParser的继承树以找到其+(id)alloc的声明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM