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
15.02k stars 1.1k forks source link

Link issue on iOS (undefined symbol _OBJC_CLASS_$_UITextLoupeSession) with 1.6.10-rc03 #4821

Closed bwalter089 closed 2 weeks ago

bwalter089 commented 2 weeks ago

Describe the bug

Undefined symbol while linking project on iOS (_OBJCCLASS$_UITextLoupeSession).

Affected platforms

Versions

Full output

> Task :bundles:cariad:compileKotlinIosX64
> Task :bundles:cariad:linkPodDebugFrameworkIosX64
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: CariadMaps. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:

    kotlin.native.cacheKind.iosX64=none

Also, consider filing an issue with full Gradle log here: https://kotl.in/issue
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: Could not find or use auto-linked framework 'Symbols'
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_UITextLoupeSession", referenced from:
      objc-class-ref in liborg.jetbrains.compose.ui:ui-uikit-cache.a(CMPTextLoupeSession.o)
ld: symbol(s) not found for architecture x86_64

> Task :bundles:cariad:linkPodDebugFrameworkIosX64 FAILED
> Task :bundles:cariad:skieUploadAnalyticsPodDebugFrameworkIosX64
error: Compilation finished with errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bundles:cariad:linkPodDebugFrameworkIosX64'.
> Compilation finished with errors
alexzhirkevich commented 2 weeks ago

Xcode 15 with iOS 17 SDK is required to build compose 1.6.10 app, as well as to upload anything to the AppStore