Bradleycorn
03/13/2023, 9:30 PMassembleMyLibXCFramework
task. So far so good. Here’s how I have it configured:
kotlinArtifacts {
Native.XCFramework("MyLib") {
targets(iosX64, iosArm64, iosSimulatorArm64)
modes(NativeBuildType.DEBUG, NativeBuildType.RELEASE)
linkerOptions = linkerOptions + listOf("-lsqlite3")
}
}
Sooo … Now I want to publish the xcframework via cocoapods (eventually SPM as well, but one thing at a time…). I don’t see how the new DSL to produce the framework works with the existing cocoapods
DSL provided by the native.cocoapods
plugin? Or maybe they don’t work together at all? Can I publish an XCFramework generated with the Experimental DSL using cocoapods? How so?Sebastien Leclerc Lavallee
03/13/2023, 9:44 PMnative.cocoapods
is an all-included where it create a .framework
and produce a podspec
file to work with.
I would say you are better dealing with cocoapods directly. Because yes you can publish an XCFramework using Cocoapods. You can have a look here starting from the How to distribute XCFrameworks using Cocoapods
part
https://anuragajwani.medium.com/distributing-universal-ios-frameworks-as-xcframeworks-using-cocoapods-699c70a5c961a-dd
03/14/2023, 12:21 PM