androidioslibgdxfreetype

How to make GDX Freetype work for iPhone development?


I am trying to port my game from Android to iOS using LibGDX + RoboVM. RoboVM is set up successfully and I can test in an iPhone simulator.

I tried to follow the instructions on this website: Khela Interactive. However, I cannot find the libs > iOS folder and robovm.xml.

How do I set up FreeType for iOS development?


Solution

  • I found it.

    In Project Gradle under iOS -> dependencies, add:

    compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
    

    Update 2024

    @Julien C. pointed out that compile must be replaced by implementation (I haven't tested it)