Код: Выделить всё
REPO_ROOT="$PODS_TARGET_SRCROOT"
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME -Pkotlin.native.cocoapods.archs="$ARCHS" -Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/Users/ctrltech/.gradle/wrapper/dists/gradle-8.14.4-bin/92wwslzcyst3phie3o264zltu/gradle-8.14.4/lib/native-platform-0.22-milestone-28.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
Calculating task graph as no cached configuration is available for tasks: :shared:syncFramework
FAILURE: Build failed with an exception.
* What went wrong:
25.0.2
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 22s
Configuration cache entry stored.
Command PhaseScriptExecution failed with a nonzero exit code
Код: Выделить всё
./gradlew cleanМожет ли кто-нибудь знать, почему я получаю эту ошибку?
Я только что обновил некоторые библиотеки.
вот мой build.grade.kts (общий модуль):
Код: Выделить всё
import com.android.build.api.dsl.androidLibrary
import org.gradle.kotlin.dsl.android
import org.gradle.kotlin.dsl.dependencies
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinCocoapods)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.compose)
alias(libs.plugins.compose.compiler)
kotlin("plugin.serialization") version "2.2.10"
}
kotlin {
android {}
val iosX64Target = iosX64()
val iosArm64Target = iosArm64()
val iosSimulatorArm64Target = iosSimulatorArm64()
listOf(
iosX64Target, iosArm64Target, iosSimulatorArm64Target
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = true
binaryOptions["bundleId"] = "com.geekpastor.shared"
}
}
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
version = "1.0"
ios.deploymentTarget = "13.0"
podfile = project.file("../iosApp/Podfile")
framework {
baseName = "shared"
isStatic = true
binaryOptions["bundleId"] = "com.geekpastor.shared"
}
}
jvmToolchain(21)
androidLibrary {
compileSdk = 36
namespace = "com.geekpastor.t_materials"
withJava()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
sourceSets {
val commonMain by getting
val commonTest by getting
val androidMain by getting
val iosMain by creating { dependsOn(commonMain) }
commonMain.dependencies {
//put your multiplatform dependencies here
implementation(libs.runtime)
implementation(libs.foundation)
implementation(libs.ui)
implementation(libs.material3)
implementation(libs.coil.network.ktor3)
implementation(libs.coil3.coil.compose)
implementation(libs.ktor.client.core)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.navigation.compose)
implementation(libs.ui.tooling.preview)
implementation(libs.androidx.datastore)
implementation(libs.androidx.datastore.preferences)
implementation(libs.material.icons.extended)
implementation(libs.material.icons.core)
implementation(libs.components.resources)
implementation(libs.lifecycle.viewmodel.compose)
implementation(libs.material3.window.size.class1)
implementation(libs.material3.adaptive)
implementation(libs.material3.adaptive.navigation.suite)
implementation(libs.kotlinx.serialization.json.v160)
implementation(libs.koin.core)
implementation(libs.koin.compose)
implementation(libs.koin.compose.viewmodel)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.logging)
implementation(libs.napier)
}
androidMain.dependencies {
implementation(libs.ktor.client.okhttp)
implementation(libs.play.services.location)
implementation(libs.firebase.auth)
implementation(libs.play.services.auth)
implementation(libs.firebase.auth.ktx)
implementation(libs.ktor.client.logging)
implementation(libs.androidx.material3.android)
implementation(libs.androidx.runtime.android)
}
iosMain.dependencies {
implementation(libs.ktor.client.darwin)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}
tasks.register("assembleXCFramework") {
dependsOn("linkDebugFrameworkIosArm64")
dependsOn("linkDebugFrameworkIosX64")
dependsOn("linkDebugFrameworkIosSimulatorArm64")
}
tasks.register("assembleReleaseXCFramework") {
dependsOn("linkReleaseFrameworkIosArm64")
dependsOn("linkReleaseFrameworkIosX64")
dependsOn("linkReleaseFrameworkIosSimulatorArm64")
}
dependencies {
"androidRuntimeClasspath"(libs.androidx.compose.ui.tooling)
}
compose.resources {
publicResClass = true
packageOfResClass = "main.res"
generateResClass = always
}
gradle.projectsEvaluated {
tasks.withType().configureEach {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
}
Код: Выделить всё
accompanistPager = "0.36.0"
agp = "8.13.2"
coilCompose = "2.7.0"
coilComposeVersion = "3.3.0"
coilNetworkKtor3 = "3.3.0"
componentsResources = "1.10.0"
converterGson = "3.0.0"
datastorePreferences = "1.2.0"
firebaseAuthKtx = "23.2.1"
firebaseMessaging = "25.0.1"
koinCompose = "4.1.1"
koinComposeViewmodel = "4.1.1"
koinCore = "4.1.1"
kotlin = "2.3.10"
coreKtx = "1.17.0"
junit = "4.13.2"
junitVersion = "1.3.0"
espressoCore = "3.7.0"
kotlinxSerializationJsonVersion = "1.10.0"
ktorClientContentNegotiation = "3.4.0"
ktorClientLogging = "3.4.0"
ktorSerializationKotlinxJson = "3.4.0"
lifecycleRuntimeKtx = "2.10.0"
composeBom = "2026.01.01"
lifecycleViewmodelComposeVersion = "2.9.6"
loggingInterceptor = "5.3.2"
lifecycleViewmodelCompose = "2.10.0"
material3 = "1.9.0"
material3WindowSizeClass = "1.9.0"
materialIconsCore = "1.7.3"
materialIconsExtended = "1.7.3"
napier = "2.7.1"
navigationCompose = "2.9.7"
googleGmsGoogleServices = "4.4.4"
firebaseAuth = "24.0.1"
navigationComposeVersion = "2.9.1"
playServicesAuth = "21.5.0"
playServicesLocation = "21.3.0"
datastoreCoreAndroid = "1.2.0"
compose = "1.10.0"
androidx-activityCompose = "1.12.3"
material3Android = "1.4.0"
runtimeAndroid = "1.10.2"
ktor = "3.4.0"
coroutines = "1.10.2"
ui = "1.10.0"
material3-adaptive = "1.2.0"
Подробнее здесь: https://stackoverflow.com/questions/798 ... mand-fails
Мобильная версия