According to the updated Getting Started document, the recommended way to run tests written using the framework will be swift test command. I wonder if there is plan to add support in Xcode to run these tests? I'm asking because swift command doesn't work for code that can only be compiled for or executed on iOS (see here).
Example scenario
(Note: my scenario is a corner case. I don't know if there are more general scenarios).
I'm developing app using Xcode 15 on macOS 13.6 (my MBP has Intel CPU, so it can't be upgraded to macOS 14). Because I use swift language features (e.g. varadic generics, macros) that requires macOS 14, I have the following setting in my packages:
let package = Package(
name: "storage",
platforms: [
.iOS(.v17), .macOS(.v14)
],
...
}
With that setting I'm able to compile and test my code in Xcode, using iOS simulator as deployment target. However, swift build or swift test doesn't work because these comands use macOS.