Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

xcode4

ios4

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

like image 320
Beuj Avatar asked Sep 09 '11 12:09

Beuj


2 Answers

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.

like image 51
Andrew Avatar answered Oct 23 '22 19:10

Andrew


I got the same error but in my .h file. I fixed it simply by a forward declaration as:

#import "MyCustomClassThatGaveParseError.h" // existed before the error
@class MyCustomClassThatGaveParseError; // added to remove the weird error
like image 25
tipycalFlow Avatar answered Oct 23 '22 17:10

tipycalFlow