I have a question about
running a unit (integration) test
, on
commonMain
that calls a remote api that is configured by a 3rd party library (I have no control over that API, how and when it's called).
When running a similar unit-test on iOS on XCode (that calls that 3rd party SDK that issues that remote request), all works well.
When running the unit-test for the
android
-target, all works well.
When running the unit-test for the
iosX64
-target, I get an error:
Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. ... ...
Does anyone know why this error is raised when running ios-tests on KMP, and how to get rid of it?
(also, the error contains this hint:
NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?
... bit odd
🙂
).
Thank you!