Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while using iOS runtime with v1.2.0-rc01 #2386

Closed
soywiz opened this issue Oct 11, 2022 · 10 comments
Closed

Issues while using iOS runtime with v1.2.0-rc01 #2386

soywiz opened this issue Oct 11, 2022 · 10 comments
Assignees
Labels
compiler Compiler plugin related ios runtime Compose runtime problem

Comments

@soywiz
Copy link

soywiz commented Oct 11, 2022

I have PR that is trying to integrate compose runtime with KorGE here: korlibs/korge#485

It works on JS, JVM, Android and K/N desktop. But fails on iOS with a strange error. I have tried 1.2.0-rc01 with Kotlin 1.7.10, and the same version with Kotlin 1.7.20 and disabling JS to get it working. In both cases it fails, but with different errors:

Screenshot 2022-10-10 at 18 57 40
Screenshot 2022-10-10 at 19 03 01

To try this:

With kotlin 1.7.10 & JS enabled:

git clone https://github.com/korlibs/korge.git
cd korge
git checkout a86ef85a2fa2d19d68b6d0e8c37d9991b226b922 # branch feature/compose
./gradlew :korge-sandbox:runIosDeviceDebug 

With kotlin 1.7.20 & JS disabled:

git clone https://github.com/korlibs/korge.git
cd korge
git checkout d2af1f0725201d5ffbd3ecc744113afe8e89eaba # branch feature/compose.js.disabled
./gradlew :korge-sandbox:runIosDeviceDebug 

It is possible to try other targets:

./gradlew :korge-sandbox:runJvm
./gradlew :korge-sandbox:runJs
./gradlew :korge-sandbox:runNativeDebug
@soywiz
Copy link
Author

soywiz commented Oct 11, 2022

Related issues #2342 #2346

@igordmn igordmn added compiler Compiler plugin related ios labels Oct 11, 2022
@dima-avdeev-jb
Copy link
Contributor

Thanks, I will research!

@abueide
Copy link

abueide commented Nov 4, 2022

am also getting this issue except with material3 on 1.7.20 with js disabled

e: Module "chiachat:ui" has a reference to symbol androidx.compose.material3/Text|-8693233731735978503[0]. Neither the module itself nor its dependencies contain such declaration.

@dima-avdeev-jb
Copy link
Contributor

dima-avdeev-jb commented Nov 6, 2022

@abueide I think, this is another Issue.
For now we don't have material3 builds for Compose Multiplatform

@dima-avdeev-jb
Copy link
Contributor

@soywiz
Can you please try Compose Multiplatform version 1.3.0-alpha01-dev849

and add to gradle.properties:
kotlin.native.cacheKind=none

@soywiz
Copy link
Author

soywiz commented Nov 13, 2022

@dima-avdeev-jb same issue:

Screenshot 2022-11-13 at 23 28 50

Check this PR: korlibs/korge-compose#2

@dima-avdeev-jb
Copy link
Contributor

@soywiz Can you also please try to use Kotlin 1.7.10 for now

@dima-avdeev-jb
Copy link
Contributor

Maybe relates with #2342 and #2346

@soywiz
Copy link
Author

soywiz commented Nov 28, 2022

Hey @dima-avdeev-jb , I have tried to build 1.7.10 locally, and now I get the first error (one local declaration instead of remember):

Screenshot 2022-11-28 at 13 50 59

AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Compiler plugin related ios runtime Compose runtime problem
Projects
None yet
Development

No branches or pull requests

5 participants