My xcode updated to version 12 and since then I’m ...
# multiplatform
z
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
Does adding
kotlin.native.cacheKind=none
to
gradle.properties
help?
z
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
Unfortunately, no.
🙆‍♂️ 1
Actually, you could try updating to 1.4.10. We improved dead code elimination for caches, so it might help.
z
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.
It’s good to know that this might fix this issue though! Thank you 🙏