After I updated XCode to 4.6.1 version, when I open a project developed in the last Xcode version, it gives me an error when I run the application, on the #import <Availability.h>
(I don't know in which class is that code line). The error I get is: "'Availability.h' file not found". How can I solve this?
Asked
Active
Viewed 4,010 times
1

Johnny Dahdah
- 995
- 5
- 15
- 21
-
2http://stackoverflow.com/questions/12524771/xcode-wont-compile-to-simulator – funeralfunk Mar 22 '13 at 20:11
2 Answers
1
Problem might be with the Foundation.framework
, try to delete the framework in build-phases and add it again to your project.
Once you have added it again, just clean and build your project, it will solve your problem.
If by doing the above does not solve your problem then you will have to re-install xcode I am afraid.

nsgulliver
- 12,655
- 23
- 43
- 64
-
I just did that, but it is still not working. Do you know what else can I do? – Johnny Dahdah Mar 22 '13 at 20:17
-
How did you installed XCode? try to update via Xcode and remove any old references of xcode if you have manually installed. – nsgulliver Mar 22 '13 at 20:19
0
at Target->Build Phases-=>Link Binary with Libraries remove Foundation.Framework and add it again

meth
- 1,887
- 2
- 18
- 33
-
I just did, and it is still not working, do you know what else can i do? – Johnny Dahdah Mar 22 '13 at 20:15
-
http://stackoverflow.com/questions/9380186/availability-h-uikit-h-etc-not-found check this address all possible reasons are here – meth Mar 22 '13 at 20:19