https://kotlinlang.org logo
Title
f

FadiBouteraa

09/24/2021, 12:48 PM
Hi #kmm help me plz Undefined symbols for architecture arm64: "_OBJC_CLASS_$_SharedLoginPayload", referenced from: objc-class-ref in LoginViewModel.o
m

Matthias Geisler

09/24/2021, 3:41 PM
Are you using XCode13?
f

FadiBouteraa

09/24/2021, 3:41 PM
Yes
m

Matthias Geisler

09/24/2021, 4:30 PM
Did you tried to upgrade your Kotlin Version to 1.5.30+?
The other way around is to is to downgrade Xcode Commandline tools...then it should also working again
f

FadiBouteraa

09/24/2021, 4:59 PM
I'm already in 1,5,30 kotlin version and 12,5,1 CLT
m

Matthias Geisler

09/24/2021, 5:03 PM
that is strange
This error normally appears if the Kotlin compiler is not able to work with CTL properly
🙄 1
I did not tried Kotlin 1.5.30 with CTL 12.5.1 though...From what I can tell Kotlin 1.5.30 works with CTL 13.0.0 and Kotlin (from 1.4.20 to) 1.5.21 with CTL 12.5.1 (that I know of)
f

FadiBouteraa

09/24/2021, 6:09 PM
The issue is that xcode is not recognizing the objects
m

Matthias Geisler

09/24/2021, 6:20 PM
Do you try to link something dynamically?