Paweł Kulikowski
04/26/2023, 7:24 AMShared
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…
.Zsolt Kovacs
02/14/2024, 4:40 PMcannot compute path of binary 'Path(str: "....")' relative to that of '.....'
To fix it, I needed to delete the build
folder.