Matti MK
10/15/2021, 7:41 AMENABLE_BITCODE
as FALSE
and finally it worked. This is obviously not the best way to go about things: is there any guide that would explain what kind of a setup a creating a release build for the KMM lib requires?hfhbd
10/15/2021, 4:03 PMCONFIGURATION=RELEASE ./gradlew packForXcode
Matti MK
10/15/2021, 4:09 PMhfhbd
10/15/2021, 4:10 PMassembleXCFramework
tasks, which always builds bothhfhbd
10/15/2021, 4:11 PMval xcf = XCFramework()
iosArm64 {
binaries {
framework {
xcf.add(this)
}
}
}
Matti MK
11/15/2021, 6:50 AMreleaseXCFramework
with the added gradle task. Now Iām wondering what would be the best way to go about actually making the release archive from XCode: obviously this new XCFramework is not included in the project.
Would you happen to know if thereās a guide somewhere out there on how to do it?hfhbd
11/15/2021, 9:06 AMMatti MK
11/15/2021, 9:08 AMMatti MK
11/18/2021, 7:44 AMRun Script
in the Xcode build phases to embedAndSignAppleFrameworkForXcode
. I guess this does the trick and that would work nicely for RELEASE
build configuration
---> No luck here, as I am using CocoaPods
⢠Your ComposeTodo app: also does not use CocoaPods. Unfortunately Iām still on Xcode 12 and as such cannot open the project, nonetheless, my guess is that you have a similar setup as above, based on the clients/build.gradle.kts
and lack of CocoaPods.
--> No luck here either
⢠PeopleInSpace uses Cocoapods: Xcode project config actually contains two configs: one for Debug
and one for Release
: these use different Pods, one of them debug
and other release
. Here, Podspec doesnāt contain anything that would point to a different Release build. CocoaPods
block on the common
gradle file is two lines long: I think this one is created with https://github.com/ge-org/multiplatform-swiftpackage but the project also has a Podfile
--> This looks to be the closest example: need to research this multiplatform-swiftpackage
a bit more closely, but maybe it could workMatti MK
11/18/2021, 7:45 AMPodfile
in the iOS project to manage dependencies + xcodegen
to not have to care about project files.Matti MK
11/18/2021, 9:24 AMrelase
build works without any tricks as does the Release
archive š¤·Matti MK
11/18/2021, 9:25 AMMatti MK
11/18/2021, 11:18 AMShowing Recent Messages
> Task sharedlinkPodReleaseFrameworkIosSo, looks like thereās definitely some
release
magic happening š¤·