I have a question. Is it possible to install xcode on ipad pro?
You can't install Xcode. The nearest you can get is to install Swift Playgrounds, which will allow you to write fairly sophisticated code, though you're limited to running from the environment you develop in. (In effect, you're always running a debug version.) Still, this might be a viable way to write parts of your code, which you subsequently integrate into an Xcode project on a Mac.