Hey folks. Maybe this is a basic question, but I ...
# multiplatform
b
Hey folks. Maybe this is a basic question, but I am stumped. I have a multiplatform library as part of a multiproject Gradle setup; it currently just has common and JVM builds. When I add
Copy code
kotlin {
  ...
  ios {
    binaries.framework()
  }
}
I get a strange dependency-resolution failure:
Could not find :kotlin-native-prebuilt-macos-x86_64:1.6.10
. I've already got the multiplatform plugin applied, the build has been working, etc. Is there perhaps some obvious dependency I'm missing? If not, any suggestions on how I could debug this?
solved 1
On the off chance that anyone else hits this - I had, in settings.gradle, the following:
Copy code
dependencyResolutionManagement {
  repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
}
Evidently, the MPP plugin configures extra repositories on the project; this line ^^^ suppressed those repositories. Changing it to
PREFER_PROJECT
unblocks this particular issue.