If I'm not completely mistaken, there is a “Hardware” section, when the simulator works and is in focus, click it and select iOS 4.0. If you do not try to change the deployment target on iOS 4.0 (for this you must change the application deployment settings on iOS 4.0 or lower).
source share