iOS.Lover
iOS.Lover

Reputation: 6051

Issue with frameworks header in my project

I updated Xcode to the 4.3.1 version but now I don't know what's going on. When I compile my project, the compiler gives this error:

Lexical issue : 'Availability.h' file not found

And in other old projects :

Lexical issue'QuartzCore/QuartzCore.h' file not found

It's so strange! But how can I fix these errors?

I already removed frameworks and added them again, but nothing changed.

enter image description here

Upvotes: 0

Views: 1020

Answers (3)

Mc.Lover
Mc.Lover

Reputation: 4994

I have faced this error ! I uninstall xcode then re install xcode 4.2 then update to 4.3 and worked !

try remove your current xcode with this code :

sudo /Developer/Library/uninstall-devtools --mode=all

hope this works ...

Upvotes: 1

Fabio Poloni
Fabio Poloni

Reputation: 8371

You need to add the Framework to every class you need it. The Prefix-Header is, how its name says, only a prefix.

#import <QuartzCore/QuartzCore.h>

Have you added this Framework to the Build Phases or have you done this using copy and paste or drag and drop?

Upvotes: 0

iamsult
iamsult

Reputation: 1579

Select target file and go to build phase and see whether the QuartzCore/QuartzCore' framework file is present in 'Link binary with libraries' section. If not added the framework.

For Availability.h if it is present then re-write it once.

Hope this helps.

Upvotes: 0

Related Questions