【问题标题】:gradlew :shared:podInstall of KMMgradlew :shared:podInstall 的 KMM
【发布时间】:2022-08-04 16:24:36
【问题描述】:

我共享的 KMM bulid.gradle。由于 gradlew :shared:podInstall 导致同步失败。 但是在共享模块路径我成功运行了 pod install 。为什么会这样。请帮忙!

plugins {
    kotlin(\"multiplatform\")
    kotlin(\"plugin.serialization\")
    kotlin(\"native.cocoapods\")
    id(\"com.android.library\")
}

version = \"1.0\"

kotlin {
    android()
    iosX64()
    iosArm64()
    //iosSimulatorArm64() sure all ios dependencies support this target

    cocoapods {
        summary = \"Some description for the Shared Module\"
        homepage = \"Link to the Shared Module homepage\"
        ios.deploymentTarget = \"14.1\"
        podfile = project.file(\"../iosApp/Podfile\")
        framework {
            baseName = \"shared\"
        }
    }
}

android {
    compileSdk = 31
    sourceSets[\"main\"].manifest.srcFile(\"src/androidMain/AndroidManifest.xml\")
    defaultConfig {
        minSdk = 31
        targetSdk = 31
    }
}

    标签: ios kmm


    【解决方案1】:

    你安装 Xcode 了吗? 请仔细检查 Ruby Cocoapod 版本。

    【讨论】:

      猜你喜欢
      • 2021-08-17
      • 2021-08-21
      • 2021-10-08
      • 2022-08-04
      • 1970-01-01
      • 2021-09-09
      • 1970-01-01
      • 1970-01-01
      • 2021-09-19
      相关资源
      最近更新 更多