Hello, i'm trying to produce framework from .kt fi...
# kotlin-native
s
Hello, i'm trying to produce framework from .kt file(For some reason it doesn't produce it from jar file) But ios project doesn't build, compilation fails with architecture error . Do you have any idea how to fix it?
Copy code
ld: warning: ignoring file /Users/admin/Downloads/kotlin-native-master/samples/calculator/build/konan/bin/xcode/test.framework/test, file was built for x86_64 which is not the architecture being linked (arm64): /Users/admin/Downloads/kotlin-native-master/samples/calculator/build/konan/bin/xcode/test.framework/test
Undefined symbols for architecture arm64:
 “_OBJC_CLASS_$_Test”, referenced from:
     objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
o
Probably you mixed simulator and device targets, and I would suggest to used K/N redistributable from v0.5 release
s
I already use v0.5 release. Where should i edit device targets? Thank you for your response