I’m getting a build error when configuring the Kto...
# ktor
j
I’m getting a build error when configuring the Ktor Darwin engine’s handleChallenge on iOS while using the Foundation constants
NSURLSessionAuthChallengePerformDefaultHandling
and
NSURLSessionAuthChallengeUseCredential
. The completionHandler’s first parameter (disposition) appears to have a mismatched expected type across targets/toolchains (Int vs Long), causing “Argument type mismatch” errors. https://github.com/JamshedAlamQaderi/appwrite-kmp/blob/eab65e933c0e794b686592559c1[…]iosMain/kotlin/com/jamshedalamqaderi/kmp/appwrite/Client.ios.kt
K 1
a
Can you tell me how the problem can be reproduced?
j
You can use the code in the comment of the GitHub link.
a
Unfortunately, I cannot reproduce the problem. The following code compiles without errors:
Untitled.cpp
j
Could you try with
./gradlew build
?
Please check the log. It's from github actions which was trying to publish my library
If i run the app it's working. but didn't work while trying to build the library
a
Unfortunately, I cannot reproduce the error when executing
build
or
nativeKlibrary
tasks. Can you please file an issue with a sample project attached and instructions on how to reproduce the error?
j
You can clone the project and uncomment the code from
iosMain
from library module than execute this command :
./gradlew :library:build
a
Thank you. I've reproduced the error and filed an issue.
👍 1