on this website https://developer.apple.com/download/all/?q=Xcode , search for ios 18.2 and download it.
after completing the download run on terminal:
xcodebuild -importPlatform path_to_your_runtime/simruntime.dmg
example: xcodebuild -importPlatform iOS_18.2_Simulator_Runtime.dmg