JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.35k stars 1.18k forks source link

build fail on ios #3533

Closed wangzhigang1112 closed 1 year ago

wangzhigang1112 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Affected platforms Select one of the platforms below:

If the bug is Android-only, report it in the Jetpack Compose tracker

Versions

To Reproduce Steps and/or the code snippet to reproduce the behavior: build fail on ios, build error log: link: Log Detail

mazunin-v-jb commented 1 year ago

Hello, thanks for submitting the issue.

I can't see anything bad in logs, except strange symbols in a root path. I can't say that it is a bug or it's just app.epoint.com.cn problem. Could you make a small reproducer, please?

gastsail commented 1 year ago

Hi @wangzhigang1112 , did you started this project with this template? or is a new project from scratch ?

Can you provide more details on your build environment ?

wangzhigang1112 commented 1 year ago

Hello, thanks for submitting the issue.

I can't see anything bad in logs, except strange symbols in a root path. I can't say that it is a bug or it's just app.epoint.com.cn problem. Could you make a small reproducer, please?

Thank you for replying. Here's a different link. Please try it again, thank you. ErrorLog

mazunin-v-jb commented 1 year ago

Thanks for providing info. Could you try Gradle 7.4.2 please? It seems like Android Studio force updated your project version, and there may be a possible reason for that behavior. You may need to change the version of AGP in Android Studio. git reset --hard in your project directory should reset the AGP version to the default one.

wangzhigang1112 commented 1 year ago

need to c

Running "git reset --hard" again to compile and run iOS still failed. ErrorLog

pablichjenkov commented 1 year ago

What version of java you have installed? Logs show bellow message. Just in case update java to 11 or 17 in your MAC

    - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
wangzhigang1112 commented 1 year ago

What version of java you have installed? Logs show bellow message. Just in case update java to 11 or 17 in your MAC

    - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8

Thank you very much for your attention. The information you provided is very useful. It turns out that the issue is related to the version of Java installed locally, which is Java 1.8. Changing it to JAVA 17 solved the problem and the program can now run smoothly.

wangzhigang1112 commented 1 year ago

Hi @wangzhigang1112 , did you started this project with this template? or is a new project from scratch ?

Can you provide more details on your build environment ?

Thank you for your interest. The issue has been resolved. It was related to the version of Java installed locally, which was Java 1.8. Changing it to JAVA 17 solved the problem and the program can now run smoothly.

okushnikov commented 4 months ago

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