I dealt with this a couple of years ago! Use two fingers to click on your .swiftpm file in Finder, and click "show package contents"... Open the file called Package.swift to deal with orientations.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: