-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Build Doesn't Work #2284
Comments
Do the crash reproduces on the simulator? I tried the simulator right now and it seems to work properly (at least the hello world) |
The crash is related to the write function in |
Nope, no write in the hello-world, but does reading for the image. Can you put a try...catch. Does the ensureParents would create ancestor folders if required: settingsFile.ensureParents().writeString("...") |
I'll attempt with a Can you try the iOS simulator with a write function? |
I'll try it in the It's weird that this only happens on iOS. I don't get this kind of behavior on Android or on Desktop. Would you happen to have access to an iPhone & Apple Developer Account you can test on? I probably won't be able to re-test it for a few hours. |
I sold my iphone in my last minimalism step. I still don't understand why there are two variants: simulator and device since on M1* machines it is using ARM64 already. I could ask someone to lend me iphone for checking, but if you can figure it out it would be nice because that would likely take a few days. |
Tried New Stacktrace: https://hasteb.in/w23F20yUyevf33L Relevant Code suspend fun main() = Korge(
gameId = ID,
title = TITLE,
windowSize = SIZE,
backgroundColor = MAIN_COLOR,
icon = ICON
) {
container = sceneContainer(defaultTransition = TRANSITION)
container.addTo(this)
loadingSequence(this)
} suspend fun loadingSequence(stage: Stage) {
// ...
// I/O
loaded = withContext(Dispatchers.CIO) {
// Storage
if (!root.exists()) root.mkdirs()
loadSettings()
// ...
}
} val root: VfsFile = applicationDataVfs["combinatory_data"]
val settingsFile: VfsFile = root["settings.json"]
@Suppress("unchecked_cast")
suspend fun loadSettings() {
if (!settingsFile.exists())
settingsFile.open(VfsOpenMode.CREATE).use { it.writeString("{}") }
val json = Json.parse(settingsFile.readString()) as Map<String, Any>
Setting.load(json)
} |
@soywiz Any updates? |
I'm on an hiatus and won't code or check messages in that time; will return around ~ early December. |
@soywiz Any updates? |
@soywiz Pinging you once again. |
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 openedbuild/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:
Other Issues:
icon80.png
doesn't exist and isn't used anymore, and should be replaced withicon87.png
.icon1024.png
can't be transparent or have an alpha channel, so I copied it and turned it off.The text was updated successfully, but these errors were encountered: