https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Neal Sanche

02/22/2020, 11:25 PM
I've been trying to get a KMP app to compile today to a WatchOS device. I swear this worked before, however the error I'm getting is:
Copy code
ld warning: ... building for watchOS-armv7k but attempting to link with file built for watchOS-arm64_32

Undefined symbols for architecture armv7k:
  "_OBJC_CLASS_$_CommonAssignment", referenced from:
      objc-class-ref in ViewModel.o
I don't remember seeing armv7k before. Any ideas about this?
I found the 'Valid Architectures' and removed armv7k from the list, and was able to build.
p

Paul Woitaschek

12/08/2020, 8:57 AM
@Neal Sanche Was that an issue for you with dropping armv7k?
n

Neal Sanche

12/19/2020, 1:24 AM
Unsure what you mean, @Paul Woitaschek. I honestly haven't tried recently, so it may no longer be an issue.