Following error message comes up when I try to create archive for macosx(mac catalyst),
I'm using mac 10.15 and xcode 11 beta 7
ld: in libname.a(test.o), building for Mac Catalyst, but linking in object file built for iOS Simulator, for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have built lib using clang -arch for amd64, arm64, x86, but for mac catalyst, since it's not really a new arch, I don't know
what argument I should give to clang -arch