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

Vivek Subramanian

09/18/2020, 5:20 PM
I am constantly getting this
Copy code
ld: warning: ignoring file /Users/vivek/AndroidStudioProjects/kmm-sample/shared/build/xcode-frameworks/shared.framework/shared, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SharedGreeting", referenced from:
      objc-class-ref in ContentView.o
  "_OBJC_CLASS_$_SharedCalculatorCompanion", referenced from:
      objc-class-ref in ContentView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am able to open the xcodeproject in XCode and run it on the iphone Simulator there.
j

John O'Reilly

09/18/2020, 6:01 PM
@katokay posted workaround in there....but haven't had chance to try out yet
v

Vivek Subramanian

09/20/2020, 2:06 AM
@John O'Reilly will try this out. I went into a mode of progressively trying out various combinations- will try this one out as well. Thank you.
@John O'Reilly Thank you so much - that worked! Able to build and launch the simulator from Android studio - also found this on apple's forums - https://developer.apple.com/forums/thread/656509 - looks like it is something apple did with the xcode release.
👍 2
7 Views