https://kotlinlang.org logo
#announcements
Title
# announcements
s

Steve Young

10/02/2019, 3:42 PM
How do I remove the prefix generated for objective c class names?(to className instead of frameworkNameClassName)
b

basher

10/02/2019, 3:44 PM
Are you using the class in Swift?
s

Steve Young

10/02/2019, 3:44 PM
no, in objective c
b

basher

10/02/2019, 3:44 PM
In Obj-C, a prefix is recommended. I'm not sure if there's a way to remove it… maybe someone from JB wll have something else to say though
a

Artyom Degtyarev [JB]

10/02/2019, 3:51 PM
AFAIK, there is no option to remove prefix completely. The best you can do is to change it by
-module-name
option, just as described here(https://github.com/JetBrains/kotlin-native/blob/aa8101764685244f14a88a550dd549260b4b02fb/FAQ.md#q-how-do-i-specify-a-custom-objective-c-prefixname-for-my-kotlin-framework)
20 Views