/bin/sh -c /Users/bimpos/Library/Developer/Xcode/DerivedData/iosApp-fmohpbncpclqkmfhfeoxygquosgt/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/shared.build/Script-BEA8885189D408D600647BDC228A6A20.sh
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"
环境:sh : 没有这样的文件或目录 命令 PhaseScriptExecution 失败,退出代码非零
您的共享 gradle 文件中似乎缺少 x64 目标。 如果您进入多平台模块的 gradle 文件(默认情况下它称为 shared)。 它应该看起来像这样:
kotlin {
x64() // for rosetta devices
arm64() //arm64 devices
arm64Simulator()
commonMain{ } // your shared module (default name is commonMain)
val x64 by getting
val arm64 by getting
val arm64Simulator by getting
iOSMain(){ // any source sets you write into iOS Main gets added into target folders
dependsOn(commonMain)
x64.dependsOn(this)
arm64.dependsOn(this)
arm64Simulator.dependsOn(this)
}
}