Guilherme Delgado
05/05/2026, 10:08 AM2.4.0-RC-185 and I’m getting this (didn’t happen before nor with Beta2):
* What went wrong:
Execution failed for task '...:validateArchitecturesForEmbedSwiftExportForXcode' (registered by plugin 'org.jetbrains.kotlin.multiplatform').
> Xcode Requested Architecture Not Configured in Gradle
Xcode Requested Architecture Not Configured in Gradle
Xcode requested target architectures that are not configured in your Gradle build: ios_x64.
The framework 'swiftExport' cannot be built for these target architectures.
Even if I add Xcode configs to skip x86_64 it fails. Normally I just use Build Active Architecture Only to YES and it works fine.Artem Olkov
05/05/2026, 1:29 PMArtem Olkov
05/05/2026, 1:41 PMGuilherme Delgado
05/05/2026, 1:49 PMAndrey Yastrebov
05/06/2026, 10:59 AMGuilherme Delgado
05/06/2026, 11:00 AMGuilherme Delgado
05/06/2026, 11:03 AMMagicDataLayer will fail, since the Build Phase only runs after. These situations arise when no build cache exists or if the Derived Data is cleared. We can solve this situation by replicating this Build Phase script in the app’s scheme Build step by adding a Pre-actions Run ScriptGuilherme Delgado
05/06/2026, 1:04 PMGuilherme Delgado
05/06/2026, 1:05 PMAndrey Yastrebov
05/06/2026, 1:37 PMcd "$SRCROOT/.."
# Xcode Scheme Pre-Actions don't subtract EXCLUDED_ARCHS from ARCHS.
# Filter manually so Gradle sees the correct architectures.
for arch in $EXCLUDED_ARCHS; do
ARCHS="${ARCHS//$arch/}"
done
export ARCHS="$(echo $ARCHS | xargs)"
./gradlew exportFrameworkForXcode