My xcode updated to version 12 and since then I’m getting build error:
Copy code
output:
Undefined symbols for architecture x86_64:
"_objc_setHook_setAssociatedObject", referenced from:
_platform_objc_objc_setHook_setAssociatedObject_wrapper100 in libobjc-cache.a(result.o)
(maybe you meant: _platform_objc_objc_setHook_setAssociatedObject_wrapper100, knifunptr_platform_objc100_objc_setHook_setAssociatedObject )
ld: symbol(s) not found for architecture x86_64
Any idea how to fix this? 😓
s
sergey.bogolepov
09/17/2020, 5:09 AM
Does adding
kotlin.native.cacheKind=none
to
gradle.properties
help?
z
zalewski.se
09/17/2020, 5:10 AM
Yeah, it fixes the problem but I wonder if there is anyway without disabling the cache. 💭 Btw. Kotlin ver is still
1.3.72
s
sergey.bogolepov
09/17/2020, 5:12 AM
Unfortunately, no.
🙆♂️ 1
sergey.bogolepov
09/17/2020, 5:15 AM
Actually, you could try updating to 1.4.10. We improved dead code elimination for caches, so it might help.
z
zalewski.se
09/17/2020, 5:18 AM
Unfortunately I can’t update it just yet. But actually I have different kmp project already updated to 1.4.10 and at first, got the same error but after rebuild with
cacheKind=none
it worked and later it keeps working without this flag.
zalewski.se
09/17/2020, 5:19 AM
It’s good to know that this might fix this issue though! Thank you 🙏