Use Xcode 7 with iOS 10

I want to use Xcode 7 with iOS 10. As I understand, working with iOS 10 beta requires Xcode 8 beta, so I should upgrade my Xcode. However, my code can't be built by the new compiler, so I want to ...