Search code examples
xcodeios4xcode4

Strange error on Xcode : parse issue Unknown type name 'plementation'


on the line:

@implementation  AccountCreateViewController
@synthesize profileFacebook;
@synthesize facebook;

Xcode 4 says :Error parse issue Unknown type name 'plementation' There are a lot of parse issue after that. But the project works on an iPhone.

I really don't know what it is... I try to convert the file in CR/LF (it was LF before), it didn't work.

ps: a screenshot


Solution

  • I think I might have fixed it. It seems that LLVM Clang doesn't like UTF-8 BOM encoding.

    See this Code Issue on the Sudzc website.

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

    For my own project, I opened up the offending files with TextWrangler and re-saved them with "Western (Mac OS Roman) encoding. So far I haven't gotten any further problems from LLVM/Clang.