We can do only with XCode IDE with swift or Objective-C programming language. However prefered Swift. Nice questions buddy,but if we can achieve by Mobile then why need IDE for any langaugae in our PC..😁😁 however in future can be implemented because of innovations in Mobile technology.
No you can download a Game Engine (Unity or Unreal) And just make a 2D Game and compile it. Or you just use soemthing like Phonegap but dont get caught its not allowed in Apple AppStore. (These you can use if you font own a Mac