В проекте Android пакеты обнаруживаются в процессе сборки, проблема в приложении для iOS.Когда я пытаюсь создать приложение для iOS, я получаю сообщение об ошибке:
Код: Выделить всё
> Task :shared:checkSandboxAndWriteProtection
> Task :shared:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :shared:compileKotlinIosArm64 UP-TO-DATE
> Task :shared:xcodeVersion UP-TO-DATE
> Task :shared:linkDebugFrameworkIosArm64 FAILED
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId= compiler flag.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:
kotlin.native.cacheKind.iosArm64=none
Also, consider filing an issue with full Gradle log here: https://kotl.in/issue
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: ignoring duplicate libraries: '-lcompression', '-ldl', '-lz'
ld: framework 'FirebaseCore' not found
error: Compilation finished with errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIosArm64'.
> Compilation finished with errors
Код: Выделить всё
kotlin {
androidTarget()
listOf(
iosX64(),
iosArm64(),
//iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
}
}
plugins{
kotlin("android").version("2.0.21").apply(false)
kotlin("multiplatform").version("2.0.21").apply(false)
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("dev.gitlive:firebase-firestore:2.1.0")
implementation("dev.gitlive:firebase-common:2.1.0")
implementation("dev.gitlive:firebase-auth:2.1.0")
implementation("dev.gitlive:firebase-functions:2.1.0")
}
}

Также в целях Frameworks:

Также я использую последнюю версию Firebase SDK iOS 11.6.0:

Также, когда я импортирую FirebaseCore в Swift для моего приложения, все идет так, как ожидалось, я даже могу зайти в импорт FirebaseCore и проверить их код.
Версия gradle:
Код: Выделить всё
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
ld: фреймворк FirebaseCore не найден
Подробнее здесь: https://stackoverflow.com/questions/792 ... -not-found