Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to port COMPLETED libgdx game from Android to iOS [closed]

Tags:

android

libgdx

I have completed game on top of libgdx: https://play.google.com/store/apps/details?id=com.drobus.basketpro Is there any workable way to port it to iOS?

like image 982
Dmitry Kolesnikovich Avatar asked Aug 09 '13 14:08

Dmitry Kolesnikovich


2 Answers

There are a couple options, but both are not truly production ready solutions. Options below are 'mostly' working. A few features will not work out of box without some custom handling (networking, sound, and a few others).

  • RoboVM (free)
  • MonoTouch/IKVM ($299 + Apple licence)

These methods work and are currently the best (easy) solutions available to you.

Note that RoboVM is supported by libGDX out-of-the-box as the default iOS target cross-compiler.

Update:

PS: RoboVM is not permanently free anymore. See here. You get a 30 day trial, then it costs 25$/month minimum.

like image 90
Jyro117 Avatar answered Oct 31 '22 15:10

Jyro117


A more recent guide on how to accomplish this can be found here:
https://medium.com/@apiric/deploying-your-libgdx-game-to-ios-testflight-163cada0696b

Short version:
Install RoboVM version 2.3.10-SNAPSHOT (link)
Create an Xcode project with the same build id as your Libgdx project
Run the Xcode project on your iPhone/iPad
Create an IOSLauncher.ipa file in Android Studio by typing .gradlew ios:createIPA
Create an “Apple Distribution” signing identity and an “App Store” provisioning profile
Install fastlane (link)
Certify and upload your project using fastlane

like image 1
Ming Aivo Avatar answered Oct 31 '22 16:10

Ming Aivo