what command should i run to get only the xcframew...
# multiplatform
f
what command should i run to get only the xcframework release version of my module?
j
How are you building the xcframework? Are you using the target binaries DSL or cocoapods? https://kotlinlang.org/docs/multiplatform-build-native-binaries.html#build-xcframeworks
Those the Gradle task names for each. They might vary depending on the name of your framework though.
f
its normal the task takes like 5 minutes?
j
Yes. It's improved some with newer versions of Kotlin.
Release builds in particular take longer because they're more optimized.
f
thanks!
@Jeff Lockhart i tried to add the pod instegration but im getting Caused by: org.gradle.api.GradleException: Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration 'sharedpodDebugFrameworkIosFat' and [configuration 'shareddebugFrameworkIosFat'] contain identical attribute sets. Consider adding an additional attribute to one of the configurations to disambiguate them. Run the 'outgoingVariants' task for more details. For more information, please refer to https://docs.gradle.org/8.3/userguide/upgrading_version_7.html#unique_attribute_sets in the Gradle documentation.
j
You can't use both CocoaPods and the binaries DSL together. Just one or the other. If you need CocoaPods for adding framework dependencies, then use that. Otherwise, just use the binaries DSL.
f
and how i only use the cocoapods?
i did no add anything for the dsl
j
You'll need to share your build.gradle.kts file to see what you have configured. The error indicates you have fat framework configured, which you should remove if you're using CocoaPods.