Xcode上的奇怪错误:解析问题未知类型名称'plementation'

时间:2011-09-09 12:18:22

标签: xcode ios4 xcode4

就行:

@implementation  AccountCreateViewController
@synthesize profileFacebook;
@synthesize facebook;

Xcode 4说:错误解析问题未知类型名称'plementation' 之后有很多解析问题。 但该项目适用于iPhone。

我真的不知道它是什么......我尝试将文件转换为CR / LF(之前是LF),但它没有用。

ps:a screenshot

3 个答案:

答案 0 :(得分:9)

我想我可能已经修好了。似乎LLVM Clang不喜欢UTF-8 BOM编码。

在Sudzc网站上查看此代码问题。

http://code.google.com/p/sudzc/issues/detail?id=27

对于我自己的项目,我使用TextWrangler打开了违规文件,并使用“Western(Mac OS Roman)编码重新保存它们。到目前为止,我还没有从LLVM / Clang那里得到任何进一步的问题。”

答案 1 :(得分:4)

我在.h文件中遇到了同样的错误。我只是通过前向声明来修复它:

#import "MyCustomClassThatGaveParseError.h" // existed before the error
@class MyCustomClassThatGaveParseError; // added to remove the weird error

答案 2 :(得分:0)

也许这不是一个“解决方案”,但这就是我如何解决我的问题。我将基本SDK从OS X 10.8更改回OS X 10.7,现在一切正常。