Hi guys ... I am facing this issue when I am addin...
# multiplatform
a
Hi guys ... I am facing this issue when I am adding the forEach ... How can I fix this ?
j
Since you're using the CocoaPods plugin, you don't need to configure the framework in this way. You can just use the
podPublishXCFramework
task. See docs.
a
the same problem
@Jeff Lockhart
j
You shouldn't configure any framework in this way. The CocoaPods plugin already configures Gradle tasks for building a framework.
a
more details please ?? this is what is in the link you mentioned
j
From the link:
If you're using CocoaPods integration in your projects, you can build XCFrameworks with the Kotlin CocoaPods Gradle plugin. It includes the following tasks that build XCFrameworks with all the registered targets and generate podspec files:
podPublishReleaseXCFramework
, which generates a release XCFramework along with a podspec file.
podPublishDebugXCFramework
, which generates a debug XCFramework along with a podspec file.
podPublishXCFramework
, which generates both debug and release XCFrameworks along with a podspec file.
It's all configured in the
cocoapods { ... }
configuration block.
a
what I understood is that I should use the following or use CocoaPods integration
but I mustn't use both they have the same job right ?
Copy code
listOf(
    iosX64(),
    iosArm64(),
    iosSimulatorArm64()
).forEach {
    it.binaries.framework {
        baseName = "shared"
    }
}
j
Yes, exactly.
❤️ 1
a
I am really grateful for you ... thank you so much
👍 1