When compiling my iOS-only app for Release, one of the packages (GRDB in this case) is compiled for both armv7 and arm64, the rest (all local packages) only for the arm64, which is what I want. The app executable is down to just the arm64 slice. How is this controlled? How can I get the package to compile for only arm64 without altering the package? There’s nothing in the app project or manifest files whict dictates anything armv7 as far as I can see.
I haven't tried this for iOS but in the Swift Package Index we're using swift build --arch arm64 and xcodebuild ... -destination "platform=macos,arch=arm64" to build on Apple Silicon. I would image those would work similarly for iOS.
Here are some links to builds showing the build commands: