https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Federico Amura

09/21/2023, 6:56 PM
what command should i run to get only the xcframework release version of my module?
j

Jeff Lockhart

09/21/2023, 6:59 PM
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

Federico Amura

09/21/2023, 7:07 PM
its normal the task takes like 5 minutes?
j

Jeff Lockhart

09/21/2023, 7:09 PM
Yes. It's improved some with newer versions of Kotlin.
Release builds in particular take longer because they're more optimized.
f

Federico Amura

09/21/2023, 7:10 PM
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

Jeff Lockhart

09/21/2023, 7:57 PM
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

Federico Amura

09/21/2023, 7:57 PM
and how i only use the cocoapods?
i did no add anything for the dsl
j

Jeff Lockhart

09/21/2023, 8:03 PM
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.