Osman Saral
10/30/2025, 4:40 PMShowing All Issues
> A failure occurred while executing org.jetbrains.kotlin.gradle.plugin.mpp.apple.swiftexport.internal.SwiftExportAction
> Can't translate return type in fun kotlinx.serialization.json.JsonObject.addId(id: kotlin.String): kotlinx.serialization.json.JsonObject: Symbol not found for kotlinx/serialization/json/JsonObject
I'm sorry if this is fixed in newer versions but I couldn't find anything that mentions kotlinx.serialization. And I can't upgrade to 2.2.20 yet.
Kotlin version: 2.2.10
Serialization: 1.9.0
Xcode 26 (I guess that could be the problem)
I'd appreciate any adviceArtem Olkov
10/30/2025, 5:10 PMkotlinx-serialization-json as exported module, that should help
As for xcode 26 part - the first release that supports it is 2.2.21. While the earlier versions should work, there can be bugs and problems. I would recommend using xcode 16.4, if it's not possible to update kotlin at the moment.Osman Saral
10/31/2025, 7:02 AMDumitru Preguza
10/31/2025, 10:47 PMArtem Olkov
11/01/2025, 8:09 AMmy project still had problems when switched to SwiftExportWhat kind of problems?
Dumitru Preguza
11/03/2025, 5:56 AMDumitru Preguza
11/03/2025, 5:58 AMArtem Olkov
11/03/2025, 10:51 AMWhen I changed embedAndSignAppleFrameworkForXcode task to embedSwiftExportForXcode, the project did not build anymoreThat can be caused by many reasons, but even when everything is configured correctly and one does not encounter bugs from swift export - out of the box, swift export is not compatible with Objective-C export and requires migration of the codebase (the usage part). So, no, when migrating an existing project to swift export one it's not enough to change the task - one has to also change the usage site. Please see the examples created by the community to get the feel of changes: 1. https://github.com/GuilhE/KMP-ComposeUIViewController/pull/4 2. https://github.com/joreilly/chip-8/commits/main/ - the last 5 commits are related to migration onto swift export If you have encountered a different problem, for example you have discovered a declaration that causes swift export to produce uncompilable code - I am very happy to help with those. Please share a project/reproducer/anything, and we will try and find a way to fix it.
Guilherme Delgado
11/04/2025, 1:14 PMGuilherme Delgado
11/04/2025, 1:15 PM