If your old project fails to compile with XCode with error like
error: There is no SDK with the name or path ‘/path/to/my/project/macosx10.6’
even if you changed target in the XCode Build Settings, then you stumbled upon silly bug in the XCode. It’s just unable to change SDKROOT in your pbxproject file. Edit it manually and remove all SDKROOT lines.