Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I getting random errors all of a sudden in Xcode when I don't think I changed anything? [closed]

All of a sudden I am getting crazy random errors when I build my project in Xcode. There are usually around 15 or 16 errors that appear, but they all relate to a 3rd party library, not my own code.

First it was the FMDB library that had all the errors, then randomly later on it was ASIHttp errors, same kind of messages, such as:

Illegal interface qualifier

Then there are lots of Expected a type errors is a few of the headers, e.g.

- (void)requestStarted:(ASIHTTPRequest *)request;
- (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders;
- (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL;
- (void)requestFinished:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)requestRedirected:(ASIHTTPRequest *)request;

All of the above lines error.

The only warning I have is to do with my own code, which is:

Incomplete implementation however it seems to me like it is complete, there is nothing missing from the class that I have in the header.

It's totally blowing my mind, I have no idea what's wrong, so if anybody could help I'd really appreciate it.

Thanks in advance.

like image 574
Harry Lawrence Avatar asked Oct 29 '25 12:10

Harry Lawrence


1 Answers

I had this kind of errors once (Illegal interface qualifier) amongst others.

Symptoms

Large amount of errors appearing out of the blue in previously perfectly compilable projects. Error are most often syntax- or qualifier-related. The code looks fine, the symbols are well defined, the method exists, but somehow the compiler sees an error. The errors can also pop near function-ends, Objective-C message ends, control loop ends, etc.

Cause of the issue

The presence of an extra character near the beginning of a header or code file. Unknowingly added by the developer.

How to solve it

Checking headers and source files. Looking for ill-placed characters, especially near the beginning of the files.

like image 71
Jean Avatar answered Oct 31 '25 02:10

Jean