We have a project that uses Cinterop to call swift code in a static library from Kotlin.It was doing fine with Xcode 12.5, but when we try to compile it with Xcode 13 we get the error:
Exception in thread “main” java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
Which is obviously a line that Apple changed in the libraries. We tried a bunch of approach to fix this but nothing worked.
Our project use the mechanism described in:
and the code for this can be found at
GitHub - KodeinKoders/playground-SwiftLib-in-KMMLib
This code has exactly the same error as ours. Is there anything we can do. Or is it something that will require changes in the Multiplatform plugin