Skip to content

iOS Build Doesn't Work #2284

@gmitch215

Description

@gmitch215

Main Issue

The KorGE iOS Build doesn't function correctly. Opening the app on my phone makes it instantly crash, causing a SIGABRT.

The issue seems to be in korlibs-io, where the app lacks permissions for storage. The app works correctly on JVM (Desktop) and Android, so it might be something with the Kotlin/Native wrapper.

I built it with gradlew build and opened build/platforms/ios in XCode. I archived and properly signed it to TestFlight. I also had to manually fix the other issues that are below this one.

Full Error:
https://hasteb.in/nv10iAKl7js8Qpi

Relevant Code:

val root: VfsFile = applicationDataVfs["combinatory_data"]

val settingsFile: VfsFile = root["settings.json"]

@Suppress("unchecked_cast")
suspend fun loadSettings() {
    // 'root' will exist at this point
    if (!settingsFile.exists())
        settingsFile.writeString("{}")

    // ...
}

Other Issues:

  • icon80.png doesn't exist and isn't used anymore, and should be replaced with icon87.png.
  • icon1024.png can't be transparent or have an alpha channel, so I copied it and turned it off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for response

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions