ComposeCharts icon indicating copy to clipboard operation
ComposeCharts copied to clipboard

bump kotlin multiplatform compose from 1.7.3 to 1.8.0 , build failed

Open aohanhongzhi opened this issue 7 months ago • 3 comments

ld: warning: ignoring duplicate libraries: '-lc++'
ld: warning: object file (/Users/HOX4SGH/Library/Caches/JetBrains/Fleet/backend/kotlin-multiplatform-crib-app.ph9dar8i137vlu0dtq5t/DerivedData/iosApp-bnuyxagdlnjqwncshtbhifmocwhd/Build/Products/Debug-iphonesimulator/ComposeApp.framework/ComposeApp[1709](libicu.icudtl_dat.o)) was built for newer 'iOS-simulator' version (17.2) than being linked (15.3)
Undefined symbols for architecture arm64:
  "_kfun:androidx.compose.runtime#androidx_compose_runtime_ProvidedValue$stableprop_getter$artificial(){}kotlin.Int", referenced from:
      _kfun:ir.ehsannarmani.compose_charts#ColumnChart(androidx.compose.ui.Modifier?;kotlin.collections.List<ir.ehsannarmani.compose_charts.models.Bars>;ir.ehsannarmani.compose_charts.models.BarProperties?;kotlin.Function1<ir.ehsannarmani.compose_charts.models.BarPopupData,kotlin.Unit>?;kotlin.Function1<ir.ehsannarmani.compose_charts.models.BarPopupData,kotlin.Unit>?;ir.ehsannarmani.compose_charts.models.LabelProperties?;ir.ehsannarmani.compose_charts.models.HorizontalIndicatorProperties?;ir.ehsannarmani.compose_charts.models.DividerProperties?;ir.ehsannarmani.compose_charts.models.GridProperties?;ir.ehsannarmani.compose_charts.models.LabelHelperProperties?;ir.ehsannarmani.compose_charts.models.AnimationMode?;androidx.compose.animation.core.AnimationSpec<kotlin.Float>?;kotlin.Long;androidx.compose.ui.text.TextMeasurer?;ir.ehsannarmani.compose_charts.models.PopupProperties?;kotlin.Float;kotlin.Double;kotlin.Double;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int;kotlin.Int){} in ComposeApp[2930](libComposeCharts:compose-charts-cache.a.o)
      _kfun:ir.ehsannarmani.compose_charts#RowChart(androidx.compose.ui.Modifier?;kotlin.collections.List<ir.ehsannarmani.compose_charts.models.Bars>;ir.ehsannarmani.compose_charts.models.BarProperties?;kotlin.Function1<ir.ehsannarmani.compose_charts.models.BarPopupData,kotlin.Unit>?;kotlin.Function1<ir.ehsannarmani.compose_charts.models.BarPopupData,kotlin.Unit>?;ir.ehsannarmani.compose_charts.models.LabelProperties?;ir.ehsannarmani.compose_charts.models.VerticalIndicatorProperties?;ir.ehsannarmani.compose_charts.models.LabelHelperProperties?;ir.ehsannarmani.compose_charts.models.DividerProperties?;ir.ehsannarmani.compose_charts.models.GridProperties?;ir.ehsannarmani.compose_charts.models.AnimationMode?;androidx.compose.animation.core.AnimationSpec<kotlin.Float>?;kotlin.Long;androidx.compose.ui.text.TextMeasurer?;ir.ehsannarmani.compose_charts.models.PopupProperties?;kotlin.Float;kotlin.Double;kotlin.Double;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int;kotlin.Int){} in ComposeApp[2930](libComposeCharts:compose-charts-cache.a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

aohanhongzhi avatar May 11 '25 02:05 aohanhongzhi

Hi, try clearing cache

ehsannarmani avatar May 11 '25 08:05 ehsannarmani

Hi, try clearing cache

sure , I have cleared it . but the error happened again.

aohanhongzhi avatar May 11 '25 14:05 aohanhongzhi

https://youtrack.jetbrains.com/issue/CMP-8155/bump-compse-from-1.7.3-to-1.8.0-build-failed

https://github.com/slackhq/circuit/releases/tag/0.28.0

Is the solution they provided related to this issue? Currently, my workaround was to remove ComposeCharts

aohanhongzhi avatar May 16 '25 06:05 aohanhongzhi