Has anyone got previews working on a project with ...
# compose-ios
s
Has anyone got previews working on a project with an iOS target in
commonMain
? I keep getting this:
Copy code
No matching variant of org.jetbrains.compose.ui:ui-tooling-preview:1.9.0-beta03 was found. The consumer was configured to find a library for use during 'kotlin-metadata', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64',
i
@Andrei Salavei it's about different one, common previews DO work. @zsmb wrote good article about it - https://zsmb.co/compose-multiplatform-preview-setup/
s
I'll have a go, thanks!
i
No matching variant of org.jetbrains.compose.uiui tooling preview1.9.0-beta03 was found.
This means that you're trying to use desktop-only preview. The problem is that we currently have three preview annotations: • Common Preview:
org.jetbrains.compose.ui.tooling.preview.Preview
• Android Preview:
androidx.compose.ui.tooling.preview.Preview
• Desktop Preview:
androidx.compose.desktop.ui.tooling.preview.Preview
Historical reasons, you know 🙈 We're working to reduce it to unified one. First link that @Andrei Salavei shared is about moving android one to common.
thank you color 1