iOS Build Doesn't Work
- Dominant language
- Kotlin
- Stars
- 3k
- Forks
- 148
- Avg merge
- 13h 44m
- Merged PRs (30d)
- 1
Description
**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:
```kts
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the crash with `gradlew build`, the generated `build/platforms/ios` project, and the provided SIGABRT log. Inspect the iOS-related path in `korlibs-io` and the referenced `applicationDataVfs` usage; done means the signed app opens without SIGABRT and the listed icon asset issues are addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100