I must be missing something fundamental here...
I have a project that I want to update for iOS 4.1 so I edited the Project settings and set the Base SDK to iOS 4.1. When I build for the device it works fine but when I try to build for the simulator all kinds (~1800+) of errors occur when the compiler processes the UIWindow.h file in the UIKit framework.
I have reinstalled the 4.1 SDK but the problem won't go away.
Can anyone help me with what's wrong?