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
Problem: linker error like this:
Root case: old code that was targeting device if arch is
arm
. But should also checkenvironment
for simulator