With the latest Kotlin 2.2.21 I am getting an erro...
# kotlin-native
t
With the latest Kotlin 2.2.21 I am getting an error when running gradle task 'commonizeCInterop'. It shows a weird call stack like so:
Copy code
Exception in thread "main" org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
	at org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99)
	at org.jetbrains.kotlin.protobuf.CodedInputStream.skipField(CodedInputStream.java:262)
	at org.jetbrains.kotlin.protobuf.GeneratedMessageLite.parseUnknownField(GeneratedMessageLite.java:540)
	at org.jetbrains.kotlin.protobuf.GeneratedMessageLite.access$100(GeneratedMessageLite.java:49)
	at org.jetbrains.kotlin.protobuf.GeneratedMessageLite$ExtendableMessage.parseUnknownField(GeneratedMessageLite.java:246)
	at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment.<init>(ProtoBuf.java:28327)
	at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment.<init>(ProtoBuf.java:28285)
	at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment$1.parsePartialFrom(ProtoBuf.java:28407)
If I put it back to Kotlin 2.2.20, it works fine. Known issue? I will check the release notes again, perhaps I missed something there.
I see a few cinterop fixes in the 2.2.21 release notes. I suspect something changed in a way that broke my case - wrapping an Objective-C XCFramework...