On M1 mac (Apple Silicon chips), Xcode runs on arm64.
How can we build the packages as x86_64 in SwiftPM that integrates with Xcode?
Xcode builds the target as arm64 for simulator unless specifying excluded archs option.
In some cases, the project would be forced to use x86_64 for simulator build since using external prebuilt frameworks only have arm64 for the device and x86_64 for the simulator. with specifying EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
However, I could not find a way to specify that in the packages managed by SwiftPM.
From this, Xcode builds packages as arm64 then builds application target as x86_64, linking phase would fail with not found modules in the arch.
What can we do when we are forced to use still x86_64 on M1 mac?