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

Compose plugin causes crash on app startup #4644

Closed
Mats-Hjalmar opened this issue Apr 17, 2024 · 2 comments · Fixed by JetBrains/compose-multiplatform-core#1278
Closed

Compose plugin causes crash on app startup #4644

Mats-Hjalmar opened this issue Apr 17, 2024 · 2 comments · Fixed by JetBrains/compose-multiplatform-core#1278
Assignees
Labels
bug Something isn't working ios p:critical Critical priority

Comments

@Mats-Hjalmar
Copy link

Describe the bug
Adding jetbrains compose plugin crashes on iOS devices below iOS 17
org.jetbrains.compose:1.6.10-dev1580

Affected platforms

  • iOS

Versions

  • Kotlin version*: 1.9.22
  • Compose Multiplatform version*: 1.6.2
  • OS version(s)* (required for Desktop and iOS issues): iOS 15.1
  • OS architecture (x86 or arm64): arm64
  • Device (model or simulator for iOS issues): IPad Pro

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Download a Compose Multiplatform Wizard template
  2. Add this version of the jetbrains compose plugin 1.6.10-dev1580
  3. Sync
  4. Run on affected device

Expected behavior
Not crashing. Display the compose multiplatform template

Additional context
This is the stacktrace in XCode

dyld[558]: Symbol not found: _OBJC_CLASS_$_UITextLoupeSession
 Referenced from: /private/var/containers/Bundle/Application/<UUID>/App.app/App
 Expected in: /System/Library/Frameworks/UIKit.framework/UIKit

It works using this version 2.6.2

@Mats-Hjalmar Mats-Hjalmar added bug Something isn't working submitted labels Apr 17, 2024
@Mats-Hjalmar Mats-Hjalmar changed the title Android Navigation crashes on startup with SIGKILL Jetbrains compose plugin crashes on startup with SIGKILL Apr 17, 2024
@Mats-Hjalmar Mats-Hjalmar changed the title Jetbrains compose plugin crashes on startup with SIGKILL Jetbrains compose plugin crashes on startup Apr 17, 2024
@Mats-Hjalmar Mats-Hjalmar changed the title Jetbrains compose plugin crashes on startup Jetbrains compose plugin causes crash on app startup Apr 17, 2024
@elijah-semyonov elijah-semyonov added p:critical Critical priority ios and removed submitted labels Apr 17, 2024
@Mats-Hjalmar Mats-Hjalmar changed the title Jetbrains compose plugin causes crash on app startup Compose plugin causes crash on app startup Apr 17, 2024
ASalavei added a commit to JetBrains/compose-multiplatform-core that referenced this issue Apr 17, 2024
## Proposed Changes
Create wrapper around UITextLoupeSession class to prevent class loading
by K/N on older iOS where the class does not exist.

Fixes: JetBrains/compose-multiplatform#4644
@ASalavei ASalavei self-assigned this Apr 18, 2024
@terrakok
Copy link
Collaborator

@elijah-semyonov
@ellomr3 reported that it reproduces on version: "1.6.10-dev1593"

@okushnikov
Copy link

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
bug Something isn't working ios p:critical Critical priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants