Trying out swift export in 2.2.20-beta2, but keep ...
# swift-export
c
Trying out swift export in 2.2.20-beta2, but keep getting an exception:
Copy code
Caused by: java.lang.IllegalArgumentException: Collection contains more than one matching element.
	at org.jetbrains.kotlin.swiftexport.standalone.builders.BuildSwiftModuleKt.buildSirSession(buildSwiftModule.kt:148)
	at org.jetbrains.kotlin.swiftexport.standalone.translation.ModuleTranslationKt.translateCrossReferencingModulesTransitively(ModuleTranslation.kt:110)

	at org.jetbrains.kotlin.swiftexport.standalone.SwiftExportRunnerKt.translateModules(SwiftExportRunner.kt:167)

	at org.jetbrains.kotlin.swiftexport.standalone.SwiftExportRunnerKt.runSwiftExport(SwiftExportRunner.kt:139)

	at org.jetbrains.kotlin.gradle.plugin.mpp.apple.swiftexport.internal.SwiftExportAction.execute(SwiftExportAction.kt:55)
Is this something worth creating an issue for on YouTrack or simply a configuration mistake on my end?
a
Hello there. That's a new report. Please file a ticket with a reproducer. Thanks!
JFTR: we have learned to reproduce this particular issue - https://youtrack.jetbrains.com/issue/KT-80185 The fix will be in 2.3.0. I'm not sure there is a workaround for this problem at the moment, sorry 😞 At least I couldn't come up with one.
🙌 2
c
Thank you for letting me know, I wasn't able to create an isolated example thus far.