At least if the simulator is not included, you must first download the old Xcode and install the old simulator.All previous Xcode versions can be downloaded from https://developer.apple.com/download/more/, so download the required version.
If you have installed an old Xcode, it is easiest to test it with that Xcode.
However, there is a limit to the version of Xcode that runs depending on the macOS version (for example, Catalina does not run Xcode 9.x), so you need to prepare a Mac with the old OS running.
In that case, it would be easier to find a used iPhone than to get an old Mac.
© 2024 OneMinuteCode. All rights reserved.