I want to use Xcode 8 with iOS 11.
should I upgrade my Xcode. However, my code can\'t be built by the new compiler, so I want to stay with Xcode 8.
As of now this is only for Debugging on iOS device, not Simulator
Xcode 8 could not support unless you have the DeviceSupport folder for the iOS 11 version.
You can download a Xcode 9 beta (latest Xcode 9) or get an DeviceSupport folder from other user.
Simply copy it to your folder or create an symbolic link
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A372\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0
reference: Use Xcode 7 with iOS 10