Usually, when I see something like this, I clean the assembly and restart Xcode, then everything was fine. With GCC 4.2, sometimes a bad pch might hide hiccups like this, but clang uses totoally different pch implementations. You can completely delete the build file until Xcode is running.
Technically, clang is not supported for iPhone development, but I use it to compile simulations, and I don't see the compilation errors you see, so (at least for me) this works. One thing sticks out in my head, you are linking to editing your UIKit.h. I understand that you did this, but setting the system headers is a big question, no. Is there a chance that you did this for other reasons, because if you do not use stock headers, there are several reasons why this can happen.
source share