Hello everyone. I want use a library published jus...
# multiplatform
f
Hello everyone. I want use a library published just with iosMain() source set. In my application I want also to add iosSimulatorArm64() source set. Is it possible? In this way a getting some errors :
could no tresolve all dependencies for configuration : iosSimulatorArm64CompileKlibraries
Copy code
ios()
iosSimulatorArm64()
val iosMain by getting
val iosSimulatorArm64Main by getting
iosSimulatorArm64Main.dependsOn(iosMain)
j
iosSimulatorArm64 should already depends on iosMain
b
It doesn't
Also no, you cannot use kmp libraries in your project if they don't publish ALL the targets you use.
j
I mean,
ios()
is “nothing”, it enabled the rest of ios targets, I think it should enable simulator one too
p
I believe is not possible, your library has to supply the possible consuming targets even if the sourcet is empty.
j
looks like simulator is not added yet to
ios()
f
yeah, ios() enables just
iosArm64
and
iosX64
. Maybe a idiot question:
iosArm64
and
iosSimulatorArm64
are not the same arch?? So
iosSimulatorArm64
should not use
iosArm64
automatically???
b
iosArm64 is for physical iphones, iosSimulatorArm64 is for ios simulators on m2 macs, iosX64 is for emulators on intel macs