jordond / MaterialKolor

🎨 A Compose multiplatform library for generating dynamic Material3 color schemes from a seed color

Home Page:https://demo.materialkolor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting IrDisallowedErrorNode error when building iOS app

jordond opened this issue · comments

When using MaterialKolor in a CMP app, the following build error happens:

error: org.jetbrains.kotlin.backend.common.linkage.issues.IrDisallowedErrorNode: Class found but error nodes are not allowed.

The full error log

Affected version: 1.5.0 and greater.
Seems to only affect the app if you also use Cocoapods.

1.5.0 brought the following changes:

  • Introduced DynamicMaterialThemeState
  • Update CMP to 1.6.2
  • Update gradle to v8.7
  • Update dependency com.github.ajalt.colormath:colormath to v3.5.0
  • Update agp to v8.4.0

I have ruled out AGP, gradle, and CMP. It probably isn't colormath but instead the introduction of the DynamicMaterialThemeState. Further investigation is needed.