MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
967 stars 133 forks source link

* fixed: `swiftSupport` was picking iphoneos for m1 arm simulator and failed to link #661

Closed dkimitsa closed 2 years ago

dkimitsa commented 2 years ago

Problem: linker error like this:

ld: .../swift/iphoneos/libswiftCompatibilityConcurrency.a(CompatibilityConcurrency.cpp.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Root case: old code that was targeting device if arch is arm. But should also check environment for simulator