Browse Source

reproducer for a release of ios build failure:

> Task :shared:assembleReleaseAppleFrameworkForXcode FAILED
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: ... shared.framework/shared have the same architectures (x86_64) and can't be in the same fat output file
error: Process 'command '/usr/bin/lipo'' finished with non-zero exit value 1
ok/repr-ios-release_chat-mpp-1.6.0beta01
Oleksandr.Karpovich 4 months ago
parent
commit
4df8daa860
  1. 4
      examples/chat/gradle.properties
  2. 2
      examples/chat/shared/src/commonMain/kotlin/ChatApp.kt
  3. 3
      examples/chat/shared/src/commonMain/kotlin/Messages.kt

4
examples/chat/gradle.properties

@ -8,6 +8,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.9.21
kotlin.version=1.9.22
agp.version=8.0.2
compose.version=1.5.11
compose.version=1.6.0-beta01

2
examples/chat/shared/src/commonMain/kotlin/ChatApp.kt

@ -66,7 +66,7 @@ fun ChatApp(displayTextField: Boolean = true) {
Theme {
Surface {
Box(modifier = Modifier.fillMaxSize()) {
Image(painterResource("background.jpg"), null, contentScale = ContentScale.Crop)
// Image(painterResource("background.jpg"), null, contentScale = ContentScale.Crop)
Column(
modifier = Modifier.fillMaxSize()
) {

3
examples/chat/shared/src/commonMain/kotlin/Messages.kt

@ -51,7 +51,8 @@ internal inline fun Messages(messages: List<Message>) {
fun UserPic(user: User) {
val imageSize = 48f
val painter = user.picture?.let {
painterResource(it)
null
//painterResource(it)
} ?: object : Painter() {
override val intrinsicSize: Size = Size(imageSize, imageSize)
override fun DrawScope.onDraw() {

Loading…
Cancel
Save