How do I install Xcode on Ubuntu?
To install Swift on Ubuntu, you are going to have install a component called clang:
Go to the terminal and type:
sudo apt-get install clang
If you installed the Swift toolchain on Linux to a directory other than the system root, you will need to run the following command, using the actual path of your Swift installation:
export PATH=/path/to/Swift/usr/bin:"${PATH}"
You can verify that you are running the expected version of Swift by entering the swift command and passing the --version flag:
swift --version
Apple Swift version 2.2-dev (LLVM ..., Clang ..., Swift ...)
The -dev suffix on the version number is used to indicate that it’s a development build, not a released version.
My brother, from what I know, Apple does not allow/cater for iOS development on non-Macs. You might just find yourself in legal trouble.
Some bloggers claim it's not possible to install Xcode on Ubuntu, but I personally did manage to install it.