Mac Mini M1 no suitable image found. Did find: ... mach-o, but wrong architecture

1.1k Views Asked by At

In our project we use Kotlin Mobile Multiplatform and I was following this setup tutorial (https://codelabs.kmp.icerock.dev/codelabs/kmm-icerock-onboarding-1-en/#0) when I got stuck with a problem. Ive reached the point of Compilation of MultiPlatformLibrary.framework (Kotlin module for iOS) and got this error message on Android studio:

Compilation failed: /Users/rustem/.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/8647638975372786697/libllvmstubs.dylib: dlopen(/Users/rustem/.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/8647638975372786697/libllvmstubs.dylib, 1): no suitable image found.  Did find:

    /Users/rustem/.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/8647638975372786697/libllvmstubs.dylib: mach-o, but wrong architecture

    /Users/rustem/.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/8647638975372786697/libllvmstubs.dylib: mach-o, but wrong architecture

 * Source files: 

 * Compiler version info: Konan: 1.5.21 / Kotlin: 1.5.21

 * Output kind: FRAMEWORK

I've tried running ./gradlew syncMultiPlatformLibraryDebugFrameworkIosX64 command in both regular terminal and terminal opened using Rosetta. But it keeps telling me zsh: operation not permitted: ./gradlew

0

There are 0 best solutions below