在我们的项目中,我们使用 Kotlin Mobile Multiplatform,当我遇到问题时,我正在遵循这个设置教程 ( https://codelabs.kmp.icerock.dev/codelabs/kmm-icerock-onboarding-1-en/#0 ) . 我已经到了 MultiPlatformLibrary.framework(iOS 的 Kotlin 模块)的编译点,并在 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
我尝试./gradlew syncMultiPlatformLibraryDebugFrameworkIosX64
在常规终端和使用 Rosetta 打开的终端中运行命令。但它一直告诉我zsh: operation not permitted: ./gradlew