If anyone is struggling to rename their shared module for iOS to start with an upper case letter for example
Shared
instead of
shared
by using a similar code:
val xcf = XCFramework()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach {
it.binaries.framework {
this.baseName = "Shared"
xcf.add(this)
}
}
for some reason when releasing the XCFramework using
assembleXCFramework
action in gradle the framework for a simulator is still lowercased and does not work properly.
I’ve found that by using
val xcf = XCFramework("Shared")
this issue can be fixed and all frameworks are renamed properly. Maybe there is something different happening underneath but this is the solution that worked for me. I hope it will help anyone.
One additional think to mention is that then the assemble actions change their names to start with
assembleShared…
.