Sam Michael
10/18/2023, 1:20 AMCould not infer iOS target architectures. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio)
Error while evaluating property 'xcodeTargetArchs' of task ':shared:syncComposeResourcesForIos'.
How do i debug and resolve this, I've tried respecifying the architectures:
My xcode specifies $(ARCHS_STANDARD) and build.gradle.kts has:
iosX64(),
iosArm64(),
iosSimulatorArm64()
export arch\=undefined_arch
Also see this in my shell script but don't know where else i can change to affect this?Angga Ardinata
10/18/2023, 3:55 AMIvan Matkov
10/18/2023, 7:20 AMSam Michael
10/20/2023, 2:54 AMTask :shared:syncComposeResourcesForIos FAILED
error: Could not infer iOS target architectures. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task 'sharedsyncComposeResourcesForIos'.
Error while evaluating property 'xcodeTargetArchs' of task 'sharedsyncComposeResourcesForIos'.> Could not infer iOS target architectures. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio) * 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.Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 503ms 1 actionable task: 1 executed