To test your apps, you might want to install Xcode and the iPhone simulator. This is entirely possible using a macOS virtual machine. Today, I will explain how to do this using dockur/macos. First, download and install it by following the instructions in their README file. After the installation is complete, macOS will show a warning in the top right corner to upgrade to the 'Tahoe' version. Click it and upgrade to the latest macOS. Then, open your terminal at the bottom right (I'm mentioning this for first-time Mac users xd). Once opened, enter these commands in order:
# Install Brew (see: https://brew.sh):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install xcodes