So now the above compiles, starts and works: I’ve ...
# kotlin-native
r
So now the above compiles, starts and works: I’ve got an app which depends on a KMP library which depends on a carthage dependency, bugsnag-cocoa. I’m now trying to use the KMP library (that I made and have full control on) that publishes
-ios-x64
and
-ios-arm64
artifacts to a maven repo. The issue is that I’m using the new
ios()
shortcut to define my ios targets in my app project, this creates an
iosMain
sourceSet in which I do not seem to be able to use the library that I depend on with
"commonMainApi"(...)
, and I think it’s because there is no
-ios
artifact. Is it possible to make one or should I drop the use of the
ios()
target shortcut and go back to the old way of making ios targets?
a
Do you mean that the IDE cannot recognize your library, or the compiler also fails here? Maybe this problem have the same origin as the issue with
platform.
libs.
r
Well AppCode & IntelliJ do see
platform.
libs in
iosMain
I’ll try to see if it compiles
Ok it looks like it does compile, so the IDE is lost, I’ll now try to cleanup everything and reopen the project
I ran
gradle --stop && rm -rf **/.gradle **/build .idea/libraries
and reimported the project but neither IntelliJ nor AppCode see my library, but they see
platform.
without issue. I think it’s due to the fact that it’s missing an
-ios
artifact. Is it possible to make one? I mean we do publish some
klib
for the
common
part of a KMP lib right?
a
I’m afraid that this won’t work in IDE, at least on the current stage of MPP development.
r
Ok, I’ll just go back to not using the
ios()
shortcut, that should work fine. Thanks