【问题标题】:Where can I find cinterop tool to create def file?我在哪里可以找到 cinterop 工具来创建 def 文件?
【发布时间】:2019-02-21 00:59:17
【问题描述】:

我正在尝试在我的 Kotlin MPP 项目中使用 SocketRocket Objective-C 库,我需要使用 cinterop 导入它,但我似乎找不到它。

【问题讨论】:

    标签: kotlin kotlin-native


    【解决方案1】:

    有 Kotlin Multiplatform Gradle 插件。该插件为您提供cinterop 工具。您可以在此处找到更多文档: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#cinterop-support

    您也可以关注 Kotlin/Native 的(待更新)教程之一,其中包含有关如何找到 conterop 工具的说明 https://kotlinlang.org/docs/tutorials/native/interop-with-c.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-30
      • 1970-01-01
      相关资源
      最近更新 更多