I\'ve downloaded the final version (and never installed any beta versions before) of xcode 3.2.3 with sdk 4, and now I can\'t seem to find a way to compile my app for a 3.1.3 iO
if you want to be compatible with iPhone OS 3.x you still compile for SDK 4.0, but open target settings and choose that application can run on 3.x (iPhone OS Deployment Target). If you did not use any iOS 4.0 specific APIs then your app will run smoothly on 3.x and 4.x, here is a screenshot of setting to change:
Screenshot