https://kotlinlang.org logo
#ktor
Title
# ktor
j

John O'Reilly

11/02/2021, 5:19 PM
I was trying out
1.6.0-RC
Kotlin version and when I run app (on iOS) now I'm getting
Copy code
Failed to find HttpClientEngineContainer. Consider adding [HttpClientEngine] implementation in dependencies.
I have
io.ktor:ktor-client-ios
dependency (as before). https://kotlinlang.org/docs/eap.html#build-details seems to indicate that version should work with Ktor 1.6.4
h

hfhbd

11/02/2021, 5:23 PM
Simulator or real device? Does it work with an eap version of Ktor?
j

John O'Reilly

11/02/2021, 5:24 PM
Simulator so far....I just tried with
1.6.2-native-mm-eap-185
and getting same issue
h

hfhbd

11/02/2021, 5:26 PM
Intel or arm mac? Did you try
1.6.0-RC2
? 😄
j

John O'Reilly

11/02/2021, 5:26 PM
Intel
hadn't noticed there was RC2....will try that now
seem to be getting further.....also moved to different eap version
a

Aleksei Tirman [JB]

11/02/2021, 6:36 PM
There is probably a bug in finding a client's engine on a classpath. As a workaround, pass an engine explicitly to the
HttpClient
constructor.
4 Views