Alexis
09/02/2025, 12:54 PMExited with status code 127 , and when looking at the report's details, I see this: /var/folders/ms/rzc7s4cj287gp9gvj1cs_ng00000gn/T/SchemeScriptAction-bjyy1r.sh: line 3: ./gradlew: No such file or directory .
My folder structure is the following:
• my_app_kmp
◦ shared (kmp modules)
◦ umbrella (umbrella module for ios)
◦ androidApp
◦ iosApp
▪︎ App
▪︎ Packages
• feature_package
Here's the script I've put in Edit Scheme > Build > Pre-Actions > New Run Script Action *cd* ..
./gradlew :umbrella:embedAndSignAppleFrameworkForXcode
My umbrella's module build.gradle.kts contains this:
kotlin {
...
val xcfName = "Shared"
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { target ->
target.binaries.framework {
export(projects.shared.data)
export(projects.shared.di)
export(projects.shared.domain)
export(projects.shared.presentation)
baseName = xcfName
isStatic = true
}
}
...
}
And when trying to build from Android Studio I simply get this error: Build failed with 0 errors and 1 warning in 196 ms
Anyone has an idea what I might be missing?
EDIT: Looks like $SRCROOT is not available in pre actions, so I had to use something like that: *cd* "$(dirname "$PROJECT_FILE_PATH")/.."