Anyone else getting thousands of warnings (on iOS)...
# multiplatform
i
Anyone else getting thousands of warnings (on iOS) after integrating Ktor 1.6.7?
Copy code
warning: (x86_64)  could not find object file symbol for symbol _kfun:io.ktor.utils.io.ByteChannelSequentialBase#<get-readByteOrder>(){}io.ktor.utils.io.core.ByteOrder
warning: (x86_64)  could not find object file symbol for symbol _kfun:io.ktor.utils.io.ByteChannelSequentialBase#<set-readByteOrder>(io.ktor.utils.io.core.ByteOrder){}
warning: (x86_64)  could not find object file symbol for symbol _kfun:io.ktor.utils.io.ByteChannelSequentialBase#<get-writeByteOrder>(){}io.ktor.utils.io.core.ByteOrder
warning: (x86_64)  could not find object file symbol for symbol _kfun:io.ktor.utils.io.ByteChannelSequentialBase#<set-writeByteOrder>(io.ktor.utils.io.core.ByteOrder){}
Literally, 5100+ warnings similar to the above ^ Thanks!
l
I’ve spent the last hour or so dealing with these kinds of issues.
i
Ugh... Any findings? I'm just finishing up something and I was thinking about trying various combinations of Kotlin version and Ktor version
l
I’ve gotten it down to just one error:
e: Module "io.ktor:ktor-network" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0]. Neither the module itself nor its dependencies contain such declaration.
, but I can’t seem to find a solution. I found a ticket https://youtrack.jetbrains.com/issue/KTOR-3562 marked as fixed, but I still see the issue.
i
What did you do to get rid of all the warnings? Thanks for the link, I'll check it out!
l
I messed with versions (moving to 2.0.0-beta1 had the largest effect, but that requires changes to your code). I found that changing the kotlin version back to 1.6.0 also seemed to remove a lot of the warnings.
i
Great, thank you very much for your input!
Btw, very interesting finding - for me this has removed all the warnings: Changing:
Copy code
xcodeConfigurationToNativeBuildType["Development"] = NativeBuildType.DEBUG
To this:
Copy code
xcodeConfigurationToNativeBuildType["Development"] = NativeBuildType.RELEASE
I have these custom Xcode configurations for different environments like Development, Staging and Production