简体   繁体   English

无法在 Kotlin 多平台项目中调试 iOS 应用程序

[英]Can't debug iOS application in Kotlin multiplatform project

I am developing an application using Kotlin Native for Android and iOS.我正在使用 Kotlin Native 为 Android 和 iOS 开发应用程序。 I am using the Kotlin Multiplatform Android studio plugin.我正在使用 Kotlin 多平台 Android 工作室插件。 If I run the application on Android it works fine.如果我在 Android 上运行应用程序,它工作正常。 If I run it on iOS, the app running, but my observable doesn't return anything and I can't see log, I need to debug.如果我在 iOS 上运行它,应用程序正在运行,但我的 observable 没有返回任何内容并且我看不到日志,我需要调试。

I need to debug the shared code and I have read that it is possible to do it, but after doing build successful I get the following error:我需要调试共享代码,并且我已经读过可以这样做,但是在构建成功后我收到以下错误:

Error running 'iosApp': Could not initialize class com.jetbrains.cidr.execution.debugger.CidrDebuggerLanguageSupportManager

在此处输入图像描述

在此处输入图像描述 I'm using:我在用着:

  • 1.4.10 Kotlin version 1.4.10 Kotlin 版本
  • 6.7.1 Gradle version 6.7.1 Gradle版本

Can someone help me please?有人能帮助我吗? I will be infinitely grateful.我将无限感激。

Thank you谢谢

I am developing an application using Kotlin Native for Android and iOS.我正在使用 Kotlin Native 为 Android 和 iOS 开发应用程序。 I am using the Kotlin Multiplatform Android studio plugin.我正在使用 Kotlin 多平台 Android 工作室插件。 If I run the application on Android it works fine.如果我在 Android 上运行应用程序,它工作正常。 If I run it on iOS, the app running, but my observable doesn't return anything and I can't see log, I need to debug.如果我在 iOS 上运行它,应用程序正在运行,但我的 observable 没有返回任何内容并且我看不到日志,我需要调试。

I need to debug the shared code and I have read that it is possible to do it, but after doing build successful I get the following error:我需要调试共享代码,并且我已经读过可以这样做,但是在构建成功后我收到以下错误:

Error running 'iosApp': Could not initialize class com.jetbrains.cidr.execution.debugger.CidrDebuggerLanguageSupportManager

在此处输入图像描述

在此处输入图像描述 I'm using:我在用着:

  • 1.4.10 Kotlin version 1.4.10 Kotlin 版本
  • 6.7.1 Gradle version 6.7.1 Gradle版本

Can someone help me please?有人能帮助我吗? I will be infinitely grateful.我将无限感激。

Thank you谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM